# notify_add

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

```c
static void notify_add(const char *name, struct cmd_find_state *fs, struct client *c, struct session *s, struct window *w, struct window_pane *wp)
```

## Parameters

- `name` (`const char *`)
- `fs` (`struct cmd_find_state *`)
- `c` (`struct client *`)
- `s` (`struct session *`)
- `w` (`struct window *`)
- `wp` (`struct window_pane *`)

## Called by

- [`notify_client`](/en/tmux/3.2a/reference/c-function-notify_client/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/notify.c#L219)
- [`notify_pane`](/en/tmux/3.2a/reference/c-function-notify_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/notify.c#L267)
- [`notify_session`](/en/tmux/3.2a/reference/c-function-notify_session/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/notify.c#L231)
- [`notify_session_window`](/en/tmux/3.2a/reference/c-function-notify_session_window/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/notify.c#L249)
- [`notify_window`](/en/tmux/3.2a/reference/c-function-notify_window/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/notify.c#L258)
- [`notify_winlink`](/en/tmux/3.2a/reference/c-function-notify_winlink/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/notify.c#L240)

## 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#L187)
- [`cmdq_running`](/en/tmux/3.2a/reference/c-function-cmdq_running/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/notify.c#L164)
- [`session_add_ref`](/en/tmux/3.2a/reference/c-function-session_add_ref/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/notify.c#L183)
- [`window_add_ref`](/en/tmux/3.2a/reference/c-function-window_add_ref/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/notify.c#L185)
- [`xcalloc`](/en/tmux/3.2a/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/notify.c#L168)
- [`xstrdup`](/en/tmux/3.2a/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/notify.c#L169)

## Other function references

- [`cmdq_append`](/en/tmux/3.2a/reference/c-function-cmdq_append/) (function)
- [`cmdq_get_flags`](/en/tmux/3.2a/reference/c-function-cmdq_get_flags/) (function)
- [`notify_callback`](/en/tmux/3.2a/reference/c-function-notify-c-notify_callback/) (function)

## Referenced declarations

- [`client`](/en/tmux/3.2a/reference/c-struct-client/) (struct)
- [`notify_entry.client`](/en/tmux/3.2a/reference/c-struct-notify_entry-client/) (attribute)
- [`cmd_find_state`](/en/tmux/3.2a/reference/c-struct-cmd_find_state/) (struct)
- [`cmdq_get_callback`](/en/tmux/3.2a/reference/c-define-tmux-h-cmdq_get_callback/) (constant)
- [`CMDQ_STATE_NOHOOKS`](/en/tmux/3.2a/reference/c-define-tmux-h-cmdq_state_nohooks/) (constant)
- [`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)
- [`cmdq_item.name`](/en/tmux/3.2a/reference/c-struct-cmdq_item-name/) (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)
- [`client.references`](/en/tmux/3.2a/reference/c-struct-client-references/) (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)
- [`session`](/en/tmux/3.2a/reference/c-struct-session/) (struct)
- [`notify_entry.window`](/en/tmux/3.2a/reference/c-struct-notify_entry-window/) (attribute)
- [`window`](/en/tmux/3.2a/reference/c-struct-window/) (struct)
- [`window_pane`](/en/tmux/3.2a/reference/c-struct-window_pane/) (struct)
