# notify_insert_hook

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

```c
static void notify_insert_hook(struct cmdq_item *item, struct notify_entry *ne)
```

## Parameters

- `item` (`struct cmdq_item *`)
- `ne` (`struct notify_entry *`)

## Called by

- [`notify_callback`](/en/tmux/latest/reference/c-function-notify-c-notify_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L158)
- [`notify_hook`](/en/tmux/latest/reference/c-function-notify_hook/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L253)

## Calls

- [`cmd_find_clear_state`](/en/tmux/latest/reference/c-function-cmd_find_clear_state/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L70)
- [`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#L74)
- [`cmd_find_empty_state`](/en/tmux/latest/reference/c-function-cmd_find_empty_state/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L71)
- [`cmd_find_from_nothing`](/en/tmux/latest/reference/c-function-cmd_find_from_nothing/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L72)
- [`cmd_parse_from_string`](/en/tmux/latest/reference/c-function-cmd_parse_from_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L99)
- [`cmdq_add_formats`](/en/tmux/latest/reference/c-function-cmdq_add_formats/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L95)
- [`cmdq_free_state`](/en/tmux/latest/reference/c-function-cmdq_free_state/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L119)
- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L68)
- [`notify_insert_one_hook`](/en/tmux/latest/reference/c-function-notify-c-notify_insert_one_hook/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L107)
- [`options_array_first`](/en/tmux/latest/reference/c-function-options_array_first/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L111)
- [`options_array_item_value`](/en/tmux/latest/reference/c-function-options_array_item_value/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L113)
- [`options_array_next`](/en/tmux/latest/reference/c-function-options_array_next/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L115)
- [`options_get`](/en/tmux/latest/reference/c-function-options_get/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L80)
- [`options_get_string`](/en/tmux/latest/reference/c-function-options_get_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L98)

## Other function references

- [`cmd_find_valid_state`](/en/tmux/latest/reference/c-function-cmd_find_valid_state/) (function)
- [`cmdq_new_state`](/en/tmux/latest/reference/c-function-cmdq_new_state/) (function)

## Referenced declarations

- [`CMD_PARSE_ERROR`](/en/tmux/latest/reference/c-enum-cmd_parse_status-cmd_parse_error/) (constant)
- [`CMD_PARSE_SUCCESS`](/en/tmux/latest/reference/c-enum-cmd_parse_status-cmd_parse_success/) (constant)
- [`cmd_parse_result.cmdlist`](/en/tmux/latest/reference/c-struct-cmd_parse_result-cmdlist/) (attribute)
- [`options_value.cmdlist`](/en/tmux/latest/reference/c-union-options_value-cmdlist/) (attribute)
- [`cmdq_item`](/en/tmux/latest/reference/c-struct-cmdq_item/) (struct)
- [`CMDQ_STATE_NOHOOKS`](/en/tmux/latest/reference/c-define-tmux-h-cmdq_state_nohooks/) (constant)
- [`cmd_parse_result.error`](/en/tmux/latest/reference/c-struct-cmd_parse_result-error/) (attribute)
- [`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)
- [`global_s_options`](/en/tmux/latest/reference/c-variable-global_s_options/) (attribute)
- [`notify_entry.name`](/en/tmux/latest/reference/c-struct-notify_entry-name/) (attribute)
- [`notify_entry`](/en/tmux/latest/reference/c-struct-notify_entry/) (struct)
- [`session.options`](/en/tmux/latest/reference/c-struct-session-options/) (attribute)
- [`window_pane.options`](/en/tmux/latest/reference/c-struct-window_pane-options/) (attribute)
- [`window.options`](/en/tmux/latest/reference/c-struct-window-options/) (attribute)
- [`cmd_find_state.s`](/en/tmux/latest/reference/c-struct-cmd_find_state-s/) (attribute)
- [`cmd_parse_result.status`](/en/tmux/latest/reference/c-struct-cmd_parse_result-status/) (attribute)
- [`winlink.window`](/en/tmux/latest/reference/c-struct-winlink-window/) (attribute)
- [`cmd_find_state.wl`](/en/tmux/latest/reference/c-struct-cmd_find_state-wl/) (attribute)
- [`cmd_find_state.wp`](/en/tmux/latest/reference/c-struct-cmd_find_state-wp/) (attribute)
