# window_tree_command_callback

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L1070
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-window-tree-c-window_tree_command_callback/

```c
static int window_tree_command_callback(struct client *c, void *modedata, const char *s, int done)
```

## Parameters

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

## Calls

- [`mode_tree_each_tagged`](/en/tmux/3.7c/reference/c-function-mode_tree_each_tagged/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L1079)

## Other function references

- [`cmdq_append`](/en/tmux/3.7c/reference/c-function-cmdq_append/) (function)
- [`window_tree_command_done`](/en/tmux/3.7c/reference/c-function-window-tree-c-window_tree_command_done/) (function)
- [`window_tree_command_each`](/en/tmux/3.7c/reference/c-function-window-tree-c-window_tree_command_each/) (function)

## Referenced by

- [`window_tree_key`](/en/tmux/3.7c/reference/c-function-window-tree-c-window_tree_key/) (function)

## Referenced declarations

- [`__unused`](/en/tmux/3.7c/reference/c-define-compat-h-__unused/) (constant)
- [`client`](/en/tmux/3.7c/reference/c-struct-client/) (struct)
- [`cmdq_get_callback`](/en/tmux/3.7c/reference/c-define-tmux-h-cmdq_get_callback/) (constant)
- [`window_tree_modedata.data`](/en/tmux/3.7c/reference/c-struct-window_tree_modedata-data/) (attribute)
- [`mode_tree_data.dead`](/en/tmux/3.7c/reference/c-struct-mode_tree_data-dead/) (attribute)
- [`KEYC_NONE`](/en/tmux/3.7c/reference/c-enum-tmux-h-332237342172367247102064023371112372044056265234-keyc_none/) (constant)
- [`mode_tree_data.references`](/en/tmux/3.7c/reference/c-struct-mode_tree_data-references/) (attribute)
