# window_tree_search

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

```c
static int window_tree_search(void *modedata, void *itemdata, const char *ss, int icase)
```

## Parameters

- `modedata` (`void *`)
- `itemdata` (`void *`)
- `ss` (`const char *`)
- `icase` (`int`)

## Calls

- [`osdep_get_name`](/en/tmux/latest/reference/c-function-osdep_get_name/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L762)
- [`window_tree_pull_item`](/en/tmux/latest/reference/c-function-window-tree-c-window_tree_pull_item/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L742)

## Referenced by

- [`window_tree_init`](/en/tmux/latest/reference/c-function-window-tree-c-window_tree_init/) (function)

## Referenced declarations

- [`__unused`](/en/tmux/latest/reference/c-define-compat-h-__unused/) (constant)
- [`window_pane.fd`](/en/tmux/latest/reference/c-struct-window_pane-fd/) (attribute)
- [`session.name`](/en/tmux/latest/reference/c-struct-session-name/) (attribute)
- [`window.name`](/en/tmux/latest/reference/c-struct-window-name/) (attribute)
- [`window_pane.tty`](/en/tmux/latest/reference/c-struct-window_pane-tty/) (attribute)
- [`window_tree_itemdata.type`](/en/tmux/latest/reference/c-struct-window_tree_itemdata-type/) (attribute)
- [`winlink.window`](/en/tmux/latest/reference/c-struct-winlink-window/) (attribute)
- [`WINDOW_TREE_NONE`](/en/tmux/latest/reference/c-enum-window_tree_type-window_tree_none/) (constant)
- [`WINDOW_TREE_PANE`](/en/tmux/latest/reference/c-enum-window_tree_type-window_tree_pane/) (constant)
- [`WINDOW_TREE_SESSION`](/en/tmux/latest/reference/c-enum-window_tree_type-window_tree_session/) (constant)
- [`WINDOW_TREE_WINDOW`](/en/tmux/latest/reference/c-enum-window_tree_type-window_tree_window/) (constant)
