# alerts_enabled

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

```c
static int alerts_enabled(struct window *, int)
```

## Parameters

- `w` (`struct window *`)
- `flags` (`int`)

## Called by

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

## Calls

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

## Referenced declarations

- [`winlink.flags`](/en/tmux/3.2a/reference/c-struct-winlink-flags/) (attribute)
- [`window.options`](/en/tmux/3.2a/reference/c-struct-window-options/) (attribute)
- [`window`](/en/tmux/3.2a/reference/c-struct-window/) (struct)
- [`WINDOW_ACTIVITY`](/en/tmux/3.2a/reference/c-define-tmux-h-window_activity/) (constant)
- [`WINDOW_BELL`](/en/tmux/3.2a/reference/c-define-tmux-h-window_bell/) (constant)
- [`WINDOW_SILENCE`](/en/tmux/3.2a/reference/c-define-tmux-h-window_silence/) (constant)
