# cmdq_append

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L301
- **Page:** https://libtmux.org/en/tmux/3.7c/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.7c/reference/c-function-cmd-command-prompt-c-cmd_command_prompt_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-command-prompt.c#L218)
- [`cmd_confirm_before_callback`](/en/tmux/3.7c/reference/c-function-cmd-confirm-before-c-cmd_confirm_before_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-confirm-before.c#L140)
- [`cmd_display_panes_key`](/en/tmux/3.7c/reference/c-function-cmd-display-panes-c-cmd_display_panes_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-display-panes.c#L284)
- [`cmd_if_shell_callback`](/en/tmux/3.7c/reference/c-function-cmd-if-shell-c-cmd_if_shell_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-if-shell.c#L166)
- [`cmd_run_shell_timer`](/en/tmux/3.7c/reference/c-function-cmd-run-shell-c-cmd_run_shell_timer/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-run-shell.c#L234)
- [`cmdq_insert_hook`](/en/tmux/3.7c/reference/c-function-cmdq_insert_hook/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L436)
- [`key_bindings_dispatch`](/en/tmux/3.7c/reference/c-function-key_bindings_dispatch/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/key-bindings.c#L715)
- [`key_bindings_init`](/en/tmux/3.7c/reference/c-function-key_bindings_init/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/key-bindings.c#L677)
- [`load_cfg`](/en/tmux/3.7c/reference/c-function-load_cfg/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cfg.c#L145)
- [`load_cfg_from_buffer`](/en/tmux/3.7c/reference/c-function-load_cfg_from_buffer/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cfg.c#L197)
- [`menu_key_cb`](/en/tmux/3.7c/reference/c-function-menu_key_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/menu.c#L505)
- [`server_client_dispatch_command`](/en/tmux/3.7c/reference/c-function-server-client-c-server_client_dispatch_command/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2415)
- [`server_client_handle_key`](/en/tmux/3.7c/reference/c-function-server_client_handle_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L1497)
- [`start_cfg`](/en/tmux/3.7c/reference/c-function-start_cfg/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cfg.c#L84)

## Calls

- [`cmdq_get`](/en/tmux/3.7c/reference/c-function-cmd-queue-c-cmdq_get/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L303)
- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L316)

## Other function references

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

## Referenced by

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

## Referenced declarations

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