# window_client_add_item

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

```c
static struct window_client_itemdata * window_client_add_item(struct window_client_modedata *data)
```

## Parameters

- `data` (`struct window_client_modedata *`)

## Called by

- [`window_client_build`](/en/tmux/latest/reference/c-function-window-client-c-window_client_build/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-client.c#L138)

## Calls

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

## Referenced declarations

- [`window_client_modedata.item_list`](/en/tmux/latest/reference/c-struct-window_client_modedata-item_list/) (attribute)
- [`window_client_modedata.item_size`](/en/tmux/latest/reference/c-struct-window_client_modedata-item_size/) (attribute)
- [`window_client_itemdata`](/en/tmux/latest/reference/c-struct-window_client_itemdata/) (struct)
- [`window_client_modedata`](/en/tmux/latest/reference/c-struct-window_client_modedata/) (struct)
