# mode_tree_filter_callback

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/mode-tree.c#L1072
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-mode-tree-c-mode_tree_filter_callback/

```c
static int mode_tree_filter_callback(struct client *c, void *data, const char *s, int done)
```

## Parameters

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

## Calls

- [`mode_tree_build`](/en/tmux/latest/reference/c-function-mode_tree_build/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/mode-tree.c#L1087)
- [`mode_tree_draw`](/en/tmux/latest/reference/c-function-mode_tree_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/mode-tree.c#L1088)
- [`xstrdup`](/en/tmux/latest/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/mode-tree.c#L1085)

## Referenced by

- [`mode_tree_key`](/en/tmux/latest/reference/c-function-mode_tree_key/) (function)

## Referenced declarations

- [`__unused`](/en/tmux/latest/reference/c-define-compat-h-__unused/) (constant)
- [`client`](/en/tmux/latest/reference/c-struct-client/) (struct)
- [`mode_tree_data.dead`](/en/tmux/latest/reference/c-struct-mode_tree_data-dead/) (attribute)
- [`mode_tree_data.filter`](/en/tmux/latest/reference/c-struct-mode_tree_data-filter/) (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)
- [`mode_tree_data.wp`](/en/tmux/latest/reference/c-struct-mode_tree_data-wp/) (attribute)
