# menu_add_items

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/menu.c#L54
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-menu_add_items/

```c
void menu_add_items(struct menu *menu, const struct menu_item *items, struct cmdq_item *qitem, struct client *c, struct cmd_find_state *fs)
```

## Parameters

- `menu` (`struct menu *`)
- `items` (`const struct menu_item *`)
- `qitem` (`struct cmdq_item *`)
- `c` (`struct client *`)
- `fs` (`struct cmd_find_state *`)

## Called by

- [`mode_tree_display_menu`](/en/tmux/latest/reference/c-function-mode-tree-c-mode_tree_display_menu/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/mode-tree.c#L1145)
- [`popup_key_cb`](/en/tmux/latest/reference/c-function-popup-c-popup_key_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L651)

## Calls

- [`menu_add_item`](/en/tmux/latest/reference/c-function-menu_add_item/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/menu.c#L60)

## Referenced declarations

- [`client`](/en/tmux/latest/reference/c-struct-client/) (struct)
- [`cmd_find_state`](/en/tmux/latest/reference/c-struct-cmd_find_state/) (struct)
- [`cmdq_item`](/en/tmux/latest/reference/c-struct-cmdq_item/) (struct)
- [`menu`](/en/tmux/latest/reference/c-struct-menu/) (struct)
- [`menu_item`](/en/tmux/latest/reference/c-struct-menu_item/) (struct)
- [`menu_item.name`](/en/tmux/latest/reference/c-struct-menu_item-name/) (attribute)
