# cmdq_add_formats

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

```c
void cmdq_add_formats(struct cmdq_state *state, struct format_tree *ft)
```

## Parameters

- `state` (`struct cmdq_state *`)
- `ft` (`struct format_tree *`)

## Called by

- [`notify_insert_hook`](/en/tmux/3.7c/reference/c-function-notify-c-notify_insert_hook/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L95)

## Calls

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

## Other function references

- [`format_create`](/en/tmux/3.7c/reference/c-function-format_create/) (function)

## Referenced by

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

## Referenced declarations

- [`cmdq_state`](/en/tmux/3.7c/reference/c-struct-cmdq_state/) (struct)
- [`FORMAT_NONE`](/en/tmux/3.7c/reference/c-define-tmux-h-format_none/) (constant)
- [`format_tree`](/en/tmux/3.7c/reference/c-struct-format_tree/) (struct)
- [`cmdq_state.formats`](/en/tmux/3.7c/reference/c-struct-cmdq_state-formats/) (attribute)
