# alerts_callback

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

```c
static void alerts_callback(int, short, void *)
```

## Parameters

- `fd` (`int`)
- `events` (`short`)
- `arg` (`void *`)

## Calls

- [`alerts_check_all`](/en/tmux/3.7c/reference/c-function-alerts-c-alerts_check_all/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/alerts.c#L58)
- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/alerts.c#L59)
- [`window_remove_ref`](/en/tmux/3.7c/reference/c-function-window_remove_ref/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/alerts.c#L65)

## Referenced by

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

## Referenced declarations

- [`__unused`](/en/tmux/3.7c/reference/c-define-compat-h-__unused/) (constant)
- [`window.alerts_entry`](/en/tmux/3.7c/reference/c-struct-window-alerts_entry/) (attribute)
- [`alerts_fired`](/en/tmux/3.7c/reference/c-variable-alerts-c-alerts_fired/) (attribute)
- [`alerts_list`](/en/tmux/3.7c/reference/c-variable-alerts-c-alerts_list/) (attribute)
- [`window.alerts_queued`](/en/tmux/3.7c/reference/c-struct-window-alerts_queued/) (attribute)
- [`window.flags`](/en/tmux/3.7c/reference/c-struct-window-flags/) (attribute)
- [`window.id`](/en/tmux/3.7c/reference/c-struct-window-id/) (attribute)
- [`WINDOW_ALERTFLAGS`](/en/tmux/3.7c/reference/c-define-tmux-h-window_alertflags/) (constant)
