# options_set_parent

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L198
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-options_set_parent/

```c
void options_set_parent(struct options *oo, struct options *parent)
```

## Parameters

- `oo` (`struct options *`)
- `parent` (`struct options *`)

## Called by

- [`cmd_break_pane_exec`](/en/tmux/3.7c/reference/c-function-cmd-break-pane-c-cmd_break_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-break-pane.c#L110)
- [`cmd_join_pane_exec`](/en/tmux/3.7c/reference/c-function-cmd-join-pane-c-cmd_join_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-join-pane.c#L109)
- [`cmd_swap_pane_exec`](/en/tmux/3.7c/reference/c-function-cmd-swap-pane-c-cmd_swap_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-swap-pane.c#L123)

## Referenced declarations

- [`options`](/en/tmux/3.7c/reference/c-struct-options/) (struct)
- [`options.parent`](/en/tmux/3.7c/reference/c-struct-options-parent/) (attribute)
