# notify_callback

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L123
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-notify-c-notify_callback/

```c
static enum cmd_retval notify_callback(struct cmdq_item *item, void *data)
```

## Parameters

- `item` (`struct cmdq_item *`)
- `data` (`void *`)

## Calls

- [`control_notify_client_detached`](/en/tmux/3.7c/reference/c-function-control_notify_client_detached/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L144)
- [`control_notify_client_session_changed`](/en/tmux/3.7c/reference/c-function-control_notify_client_session_changed/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L142)
- [`control_notify_pane_mode_changed`](/en/tmux/3.7c/reference/c-function-control_notify_pane_mode_changed/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L130)
- [`control_notify_paste_buffer_changed`](/en/tmux/3.7c/reference/c-function-control_notify_paste_buffer_changed/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L154)
- [`control_notify_paste_buffer_deleted`](/en/tmux/3.7c/reference/c-function-control_notify_paste_buffer_deleted/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L156)
- [`control_notify_session_closed`](/en/tmux/3.7c/reference/c-function-control_notify_session_closed/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L150)
- [`control_notify_session_created`](/en/tmux/3.7c/reference/c-function-control_notify_session_created/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L148)
- [`control_notify_session_renamed`](/en/tmux/3.7c/reference/c-function-control_notify_session_renamed/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L146)
- [`control_notify_session_window_changed`](/en/tmux/3.7c/reference/c-function-control_notify_session_window_changed/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L152)
- [`control_notify_window_layout_changed`](/en/tmux/3.7c/reference/c-function-control_notify_window_layout_changed/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L132)
- [`control_notify_window_linked`](/en/tmux/3.7c/reference/c-function-control_notify_window_linked/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L138)
- [`control_notify_window_pane_changed`](/en/tmux/3.7c/reference/c-function-control_notify_window_pane_changed/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L134)
- [`control_notify_window_renamed`](/en/tmux/3.7c/reference/c-function-control_notify_window_renamed/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L140)
- [`control_notify_window_unlinked`](/en/tmux/3.7c/reference/c-function-control_notify_window_unlinked/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L136)
- [`format_free`](/en/tmux/3.7c/reference/c-function-format_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L170)
- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L127)
- [`notify_insert_hook`](/en/tmux/3.7c/reference/c-function-notify-c-notify_insert_hook/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L158)
- [`server_client_unref`](/en/tmux/3.7c/reference/c-function-server_client_unref/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L161)
- [`session_remove_ref`](/en/tmux/3.7c/reference/c-function-session_remove_ref/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L163)
- [`window_remove_ref`](/en/tmux/3.7c/reference/c-function-window_remove_ref/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L165)

## Referenced by

- [`notify_add`](/en/tmux/3.7c/reference/c-function-notify-c-notify_add/) (function)

## Referenced declarations

- [`notify_entry.client`](/en/tmux/3.7c/reference/c-struct-notify_entry-client/) (attribute)
- [`CMD_RETURN_NORMAL`](/en/tmux/3.7c/reference/c-enum-cmd_retval-cmd_return_normal/) (constant)
- [`cmd_retval`](/en/tmux/3.7c/reference/c-enum-cmd_retval/) (enum)
- [`cmdq_item`](/en/tmux/3.7c/reference/c-struct-cmdq_item/) (struct)
- [`notify_entry.formats`](/en/tmux/3.7c/reference/c-struct-notify_entry-formats/) (attribute)
- [`notify_entry.fs`](/en/tmux/3.7c/reference/c-struct-notify_entry-fs/) (attribute)
- [`notify_entry.name`](/en/tmux/3.7c/reference/c-struct-notify_entry-name/) (attribute)
- [`notify_entry.pane`](/en/tmux/3.7c/reference/c-struct-notify_entry-pane/) (attribute)
- [`notify_entry.pbname`](/en/tmux/3.7c/reference/c-struct-notify_entry-pbname/) (attribute)
- [`cmd_find_state.s`](/en/tmux/3.7c/reference/c-struct-cmd_find_state-s/) (attribute)
- [`notify_entry.session`](/en/tmux/3.7c/reference/c-struct-notify_entry-session/) (attribute)
- [`notify_entry.window`](/en/tmux/3.7c/reference/c-struct-notify_entry-window/) (attribute)
