# cmdq_link_state

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L231
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-cmdq_link_state/

```c
struct cmdq_state * cmdq_link_state(struct cmdq_state *state)
```

## Parameters

- `state` (`struct cmdq_state *`)

## Called by

- [`cmdq_get_command`](/en/tmux/latest/reference/c-function-cmdq_get_command/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L517)

## Referenced by

- [`cmd_parse_from_arguments`](/en/tmux/latest/reference/c-function-cmd_parse_from_arguments/) (function)

## Referenced declarations

- [`cmdq_state`](/en/tmux/latest/reference/c-struct-cmdq_state/) (struct)
- [`cmdq_state.references`](/en/tmux/latest/reference/c-struct-cmdq_state-references/) (attribute)
