# window_customize_set_command_callback

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

```c
static int window_customize_set_command_callback(struct client *c, void *itemdata, const char *s, int done)
```

## Parameters

- `c` (`struct client *`)
- `itemdata` (`void *`)
- `s` (`const char *`)
- `done` (`int`)

## Calls

- [`cmd_list_free`](/en/tmux/latest/reference/c-function-cmd_list_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1216)
- [`cmd_parse_from_string`](/en/tmux/latest/reference/c-function-cmd_parse_from_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1208)
- [`mode_tree_build`](/en/tmux/latest/reference/c-function-mode_tree_build/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1219)
- [`mode_tree_draw`](/en/tmux/latest/reference/c-function-mode_tree_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1220)
- [`status_message_set`](/en/tmux/latest/reference/c-function-status_message_set/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1227)

## Other function references

- [`window_customize_get_key`](/en/tmux/latest/reference/c-function-window-customize-c-window_customize_get_key/) (function)

## Referenced by

- [`window_customize_set_key`](/en/tmux/latest/reference/c-function-window-customize-c-window_customize_set_key/) (function)

## Referenced declarations

- [`__unused`](/en/tmux/latest/reference/c-define-compat-h-__unused/) (constant)
- [`client`](/en/tmux/latest/reference/c-struct-client/) (struct)
- [`CMD_PARSE_ERROR`](/en/tmux/latest/reference/c-enum-cmd_parse_status-cmd_parse_error/) (constant)
- [`CMD_PARSE_SUCCESS`](/en/tmux/latest/reference/c-enum-cmd_parse_status-cmd_parse_success/) (constant)
- [`cmd_parse_result.cmdlist`](/en/tmux/latest/reference/c-struct-cmd_parse_result-cmdlist/) (attribute)
- [`key_binding.cmdlist`](/en/tmux/latest/reference/c-struct-key_binding-cmdlist/) (attribute)
- [`window_customize_itemdata.data`](/en/tmux/latest/reference/c-struct-window_customize_itemdata-data/) (attribute)
- [`window_customize_modedata.data`](/en/tmux/latest/reference/c-struct-window_customize_modedata-data/) (attribute)
- [`window_customize_modedata.dead`](/en/tmux/latest/reference/c-struct-window_customize_modedata-dead/) (attribute)
- [`cmd_parse_result.error`](/en/tmux/latest/reference/c-struct-cmd_parse_result-error/) (attribute)
- [`window_pane.flags`](/en/tmux/latest/reference/c-struct-window_pane-flags/) (attribute)
- [`PANE_REDRAW`](/en/tmux/latest/reference/c-define-tmux-h-pane_redraw/) (constant)
- [`cmd_parse_result.status`](/en/tmux/latest/reference/c-struct-cmd_parse_result-status/) (attribute)
- [`window_customize_modedata.wp`](/en/tmux/latest/reference/c-struct-window_customize_modedata-wp/) (attribute)
