# notify_hook_formats

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

```c
static void notify_hook_formats(struct cmdq_state *state, struct session *s, struct window *w, int pane)
```

## Parameters

- `state` (`struct cmdq_state *`)
- `s` (`struct session *`)
- `w` (`struct window *`)
- `pane` (`int`)

## Called by

- [`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#L92)

## Calls

- [`cmdq_add_format`](/en/tmux/3.2a/reference/c-function-cmdq_add_format/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/notify.c#L42)

## Referenced declarations

- [`cmdq_state`](/en/tmux/3.2a/reference/c-struct-cmdq_state/) (struct)
- [`session.id`](/en/tmux/3.2a/reference/c-struct-session-id/) (attribute)
- [`window.id`](/en/tmux/3.2a/reference/c-struct-window-id/) (attribute)
- [`session.name`](/en/tmux/3.2a/reference/c-struct-session-name/) (attribute)
- [`window.name`](/en/tmux/3.2a/reference/c-struct-window-name/) (attribute)
- [`cmd_find_state.s`](/en/tmux/3.2a/reference/c-struct-cmd_find_state-s/) (attribute)
- [`session`](/en/tmux/3.2a/reference/c-struct-session/) (struct)
- [`cmd_find_state.w`](/en/tmux/3.2a/reference/c-struct-cmd_find_state-w/) (attribute)
- [`window`](/en/tmux/3.2a/reference/c-struct-window/) (struct)
