# notify_add

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L179
- **Page:** https://libtmux.org/en/tmux/latest/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, const char *pbname)
```

## Parameters

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

## Called by

- [`notify_client`](/en/tmux/latest/reference/c-function-notify_client/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L263)
- [`notify_pane`](/en/tmux/latest/reference/c-function-notify_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L311)
- [`notify_paste_buffer`](/en/tmux/latest/reference/c-function-notify_paste_buffer/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L321)
- [`notify_session`](/en/tmux/latest/reference/c-function-notify_session/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L275)
- [`notify_session_window`](/en/tmux/latest/reference/c-function-notify_session_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L293)
- [`notify_window`](/en/tmux/latest/reference/c-function-notify_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L302)
- [`notify_winlink`](/en/tmux/latest/reference/c-function-notify_winlink/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L284)

## Calls

- [`cmd_find_copy_state`](/en/tmux/latest/reference/c-function-cmd_find_copy_state/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L226)
- [`cmdq_running`](/en/tmux/latest/reference/c-function-cmdq_running/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L186)
- [`format_add`](/en/tmux/latest/reference/c-function-format_add/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L200)
- [`format_log_debug`](/en/tmux/latest/reference/c-function-format_log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L217)
- [`session_add_ref`](/en/tmux/latest/reference/c-function-session_add_ref/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L222)
- [`window_add_ref`](/en/tmux/latest/reference/c-function-window_add_ref/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L224)
- [`xcalloc`](/en/tmux/latest/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L190)
- [`xstrdup`](/en/tmux/latest/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L191)

## Other function references

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

## Referenced declarations

- [`client`](/en/tmux/latest/reference/c-struct-client/) (struct)
- [`notify_entry.client`](/en/tmux/latest/reference/c-struct-notify_entry-client/) (attribute)
- [`cmd_find_state`](/en/tmux/latest/reference/c-struct-cmd_find_state/) (struct)
- [`cmdq_get_callback`](/en/tmux/latest/reference/c-define-tmux-h-cmdq_get_callback/) (constant)
- [`CMDQ_STATE_NOHOOKS`](/en/tmux/latest/reference/c-define-tmux-h-cmdq_state_nohooks/) (constant)
- [`FORMAT_NOJOBS`](/en/tmux/latest/reference/c-define-tmux-h-format_nojobs/) (constant)
- [`notify_entry.formats`](/en/tmux/latest/reference/c-struct-notify_entry-formats/) (attribute)
- [`notify_entry.fs`](/en/tmux/latest/reference/c-struct-notify_entry-fs/) (attribute)
- [`session.id`](/en/tmux/latest/reference/c-struct-session-id/) (attribute)
- [`window_pane.id`](/en/tmux/latest/reference/c-struct-window_pane-id/) (attribute)
- [`window.id`](/en/tmux/latest/reference/c-struct-window-id/) (attribute)
- [`client.name`](/en/tmux/latest/reference/c-struct-client-name/) (attribute)
- [`cmdq_item.name`](/en/tmux/latest/reference/c-struct-cmdq_item-name/) (attribute)
- [`notify_entry.name`](/en/tmux/latest/reference/c-struct-notify_entry-name/) (attribute)
- [`session.name`](/en/tmux/latest/reference/c-struct-session-name/) (attribute)
- [`window.name`](/en/tmux/latest/reference/c-struct-window-name/) (attribute)
- [`notify_entry.pane`](/en/tmux/latest/reference/c-struct-notify_entry-pane/) (attribute)
- [`notify_entry.pbname`](/en/tmux/latest/reference/c-struct-notify_entry-pbname/) (attribute)
- [`client.references`](/en/tmux/latest/reference/c-struct-client-references/) (attribute)
- [`cmd_find_state.s`](/en/tmux/latest/reference/c-struct-cmd_find_state-s/) (attribute)
- [`notify_entry.session`](/en/tmux/latest/reference/c-struct-notify_entry-session/) (attribute)
- [`session`](/en/tmux/latest/reference/c-struct-session/) (struct)
- [`notify_entry.window`](/en/tmux/latest/reference/c-struct-notify_entry-window/) (attribute)
- [`window`](/en/tmux/latest/reference/c-struct-window/) (struct)
- [`window_pane.window`](/en/tmux/latest/reference/c-struct-window_pane-window/) (attribute)
- [`window_pane`](/en/tmux/latest/reference/c-struct-window_pane/) (struct)
