# cmdq_append

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

```c
struct cmdq_item * cmdq_append(struct client *c, struct cmdq_item *item)
```

## Parameters

- `c` (`struct client *`)
- `item` (`struct cmdq_item *`)

## Called by

- [`cmd_command_prompt_callback`](/en/tmux/3.2a/reference/c-function-cmd-command-prompt-c-cmd_command_prompt_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-command-prompt.c#L173)
- [`cmd_confirm_before_callback`](/en/tmux/3.2a/reference/c-function-cmd-confirm-before-c-cmd_confirm_before_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-confirm-before.c#L101)
- [`cmd_display_panes_key`](/en/tmux/3.2a/reference/c-function-cmd-display-panes-c-cmd_display_panes_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-panes.c#L245)
- [`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#L188)
- [`cmdq_insert_hook`](/en/tmux/3.2a/reference/c-function-cmdq_insert_hook/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-queue.c#L423)
- [`key_bindings_dispatch`](/en/tmux/3.2a/reference/c-function-key_bindings_dispatch/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/key-bindings.c#L673)
- [`key_bindings_init`](/en/tmux/3.2a/reference/c-function-key_bindings_init/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/key-bindings.c#L636)
- [`load_cfg`](/en/tmux/3.2a/reference/c-function-load_cfg/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cfg.c#L149)
- [`load_cfg_from_buffer`](/en/tmux/3.2a/reference/c-function-load_cfg_from_buffer/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cfg.c#L203)
- [`menu_key_cb`](/en/tmux/3.2a/reference/c-function-menu-c-menu_key_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/menu.c#L337)
- [`server_client_dispatch_command`](/en/tmux/3.2a/reference/c-function-server-client-c-server_client_dispatch_command/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L2174)
- [`server_client_handle_key`](/en/tmux/3.2a/reference/c-function-server_client_handle_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L1374)
- [`server_start`](/en/tmux/3.2a/reference/c-function-server_start/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server.c#L233)
- [`start_cfg`](/en/tmux/3.2a/reference/c-function-start_cfg/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cfg.c#L84)

## Calls

- [`cmdq_get`](/en/tmux/3.2a/reference/c-function-cmd-queue-c-cmdq_get/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-queue.c#L290)
- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-queue.c#L303)

## Other function references

- [`cmdq_name`](/en/tmux/3.2a/reference/c-function-cmd-queue-c-cmdq_name/) (function)

## Referenced by

- [`control_read_callback`](/en/tmux/3.2a/reference/c-function-control-c-control_read_callback/) (function)
- [`notify_add`](/en/tmux/3.2a/reference/c-function-notify-c-notify_add/) (function)
- [`window_tree_command_callback`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_command_callback/) (function)
- [`window_tree_kill_current_callback`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_kill_current_callback/) (function)
- [`window_tree_kill_tagged_callback`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_kill_tagged_callback/) (function)

## Referenced declarations

- [`client`](/en/tmux/3.2a/reference/c-struct-client/) (struct)
- [`cmdq_item.client`](/en/tmux/3.2a/reference/c-struct-cmdq_item-client/) (attribute)
- [`cmdq_item`](/en/tmux/3.2a/reference/c-struct-cmdq_item/) (struct)
- [`cmdq_item.entry`](/en/tmux/3.2a/reference/c-struct-cmdq_item-entry/) (attribute)
- [`cmdq_list.list`](/en/tmux/3.2a/reference/c-struct-cmdq_list-list/) (attribute)
- [`cmdq_item.name`](/en/tmux/3.2a/reference/c-struct-cmdq_item-name/) (attribute)
- [`cmdq_item.next`](/en/tmux/3.2a/reference/c-struct-cmdq_item-next/) (attribute)
- [`cmdq_item.queue`](/en/tmux/3.2a/reference/c-struct-cmdq_item-queue/) (attribute)
- [`client.references`](/en/tmux/3.2a/reference/c-struct-client-references/) (attribute)
