# cmdq_get_state

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

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

## Parameters

- `item` (`struct cmdq_item *`)

## Referenced by

- [`cmd_command_prompt_callback`](/en/tmux/3.7c/reference/c-function-cmd-command-prompt-c-cmd_command_prompt_callback/) (function)
- [`cmd_confirm_before_callback`](/en/tmux/3.7c/reference/c-function-cmd-confirm-before-c-cmd_confirm_before_callback/) (function)
- [`cmd_display_panes_key`](/en/tmux/3.7c/reference/c-function-cmd-display-panes-c-cmd_display_panes_key/) (function)
- [`cmd_if_shell_callback`](/en/tmux/3.7c/reference/c-function-cmd-if-shell-c-cmd_if_shell_callback/) (function)
- [`cmd_if_shell_exec`](/en/tmux/3.7c/reference/c-function-cmd-if-shell-c-cmd_if_shell_exec/) (function)
- [`cmd_parse_from_arguments`](/en/tmux/3.7c/reference/c-function-cmd_parse_from_arguments/) (function)
- [`cmd_run_shell_timer`](/en/tmux/3.7c/reference/c-function-cmd-run-shell-c-cmd_run_shell_timer/) (function)
- [`load_cfg`](/en/tmux/3.7c/reference/c-function-load_cfg/) (function)
- [`load_cfg_from_buffer`](/en/tmux/3.7c/reference/c-function-load_cfg_from_buffer/) (function)

## Referenced declarations

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