# notify_hook

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/notify.c#L195
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-notify_hook/

```c
void notify_hook(struct cmdq_item *item, const char *name)
```

## Parameters

- `item` (`struct cmdq_item *`)
- `name` (`const char *`)

## Called by

- [`cmd_set_option_exec`](/en/tmux/3.2a/reference/c-function-cmd-set-option-c-cmd_set_option_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-set-option.c#L91)

## Calls

- [`cmd_find_copy_state`](/en/tmux/3.2a/reference/c-function-cmd_find_copy_state/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/notify.c#L203)
- [`cmdq_get_client`](/en/tmux/3.2a/reference/c-function-cmdq_get_client/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/notify.c#L205)
- [`cmdq_get_target`](/en/tmux/3.2a/reference/c-function-cmdq_get_target/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/notify.c#L197)
- [`notify_insert_hook`](/en/tmux/3.2a/reference/c-function-notify-c-notify_insert_hook/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/notify.c#L210)

## Referenced declarations

- [`notify_entry.client`](/en/tmux/3.2a/reference/c-struct-notify_entry-client/) (attribute)
- [`cmdq_item`](/en/tmux/3.2a/reference/c-struct-cmdq_item/) (struct)
- [`notify_entry.fs`](/en/tmux/3.2a/reference/c-struct-notify_entry-fs/) (attribute)
- [`window_pane.id`](/en/tmux/3.2a/reference/c-struct-window_pane-id/) (attribute)
- [`notify_entry.name`](/en/tmux/3.2a/reference/c-struct-notify_entry-name/) (attribute)
- [`notify_entry.pane`](/en/tmux/3.2a/reference/c-struct-notify_entry-pane/) (attribute)
- [`cmd_find_state.s`](/en/tmux/3.2a/reference/c-struct-cmd_find_state-s/) (attribute)
- [`notify_entry.session`](/en/tmux/3.2a/reference/c-struct-notify_entry-session/) (attribute)
- [`cmd_find_state.w`](/en/tmux/3.2a/reference/c-struct-cmd_find_state-w/) (attribute)
- [`notify_entry.window`](/en/tmux/3.2a/reference/c-struct-notify_entry-window/) (attribute)
- [`cmd_find_state.wp`](/en/tmux/3.2a/reference/c-struct-cmd_find_state-wp/) (attribute)
