# window_customize_add_item

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L212
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-window-customize-c-window_customize_add_item/

```c
static struct window_customize_itemdata * window_customize_add_item(struct window_customize_modedata *data)
```

## Parameters

- `data` (`struct window_customize_modedata *`)

## Called by

- [`window_customize_build_array`](/en/tmux/latest/reference/c-function-window-customize-c-window_customize_build_array/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L252)
- [`window_customize_build_keys`](/en/tmux/latest/reference/c-function-window-customize-c-window_customize_build_keys/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L480)
- [`window_customize_build_option`](/en/tmux/latest/reference/c-function-window-customize-c-window_customize_build_option/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L323)

## Calls

- [`xcalloc`](/en/tmux/latest/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L218)
- [`xreallocarray`](/en/tmux/latest/reference/c-function-xreallocarray/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L216)

## Referenced declarations

- [`window_customize_itemdata.data`](/en/tmux/latest/reference/c-struct-window_customize_itemdata-data/) (attribute)
- [`window_customize_modedata.item_list`](/en/tmux/latest/reference/c-struct-window_customize_modedata-item_list/) (attribute)
- [`window_customize_modedata.item_size`](/en/tmux/latest/reference/c-struct-window_customize_modedata-item_size/) (attribute)
- [`window_customize_itemdata`](/en/tmux/latest/reference/c-struct-window_customize_itemdata/) (struct)
- [`window_customize_modedata`](/en/tmux/latest/reference/c-struct-window_customize_modedata/) (struct)
