# cmdq_get_state

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-queue.c#L164
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-cmdq_get_state/

```c
struct cmdq_state * cmdq_get_state(struct cmdq_item *item)
```

## Parameters

- `item` (`struct cmdq_item *`)

## Called by

- [`cmd_if_shell_callback`](/en/tmux/3.2a/reference/c-function-cmd-if-shell-c-cmd_if_shell_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-if-shell.c#L179)
- [`cmd_if_shell_exec`](/en/tmux/3.2a/reference/c-function-cmd-if-shell-c-cmd_if_shell_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-if-shell.c#L66)

## Referenced by

- [`cmd_parse_from_arguments`](/en/tmux/3.2a/reference/c-function-cmd_parse_from_arguments/) (function)
- [`cmd_run_shell_timer`](/en/tmux/3.2a/reference/c-function-cmd-run-shell-c-cmd_run_shell_timer/) (function)
- [`load_cfg`](/en/tmux/3.2a/reference/c-function-load_cfg/) (function)
- [`load_cfg_from_buffer`](/en/tmux/3.2a/reference/c-function-load_cfg_from_buffer/) (function)

## Referenced declarations

- [`cmdq_item`](/en/tmux/3.2a/reference/c-struct-cmdq_item/) (struct)
- [`cmdq_state`](/en/tmux/3.2a/reference/c-struct-cmdq_state/) (struct)
- [`cmdq_item.state`](/en/tmux/3.2a/reference/c-struct-cmdq_item-state/) (attribute)
