# alerts_action_applies

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

```c
static int alerts_action_applies(struct winlink *, const char *)
```

## Parameters

- `wl` (`struct winlink *`)
- `name` (`const char *`)

## Called by

- [`alerts_check_activity`](/en/tmux/3.7c/reference/c-function-alerts-c-alerts_check_activity/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/alerts.c#L242)
- [`alerts_check_bell`](/en/tmux/3.7c/reference/c-function-alerts-c-alerts_check_bell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/alerts.c#L206)
- [`alerts_check_silence`](/en/tmux/3.7c/reference/c-function-alerts-c-alerts_check_silence/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/alerts.c#L278)

## Calls

- [`options_get_number`](/en/tmux/3.7c/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/alerts.c#L81)

## Referenced declarations

- [`ALERT_ANY`](/en/tmux/3.7c/reference/c-define-tmux-h-alert_any/) (constant)
- [`ALERT_CURRENT`](/en/tmux/3.7c/reference/c-define-tmux-h-alert_current/) (constant)
- [`ALERT_OTHER`](/en/tmux/3.7c/reference/c-define-tmux-h-alert_other/) (constant)
- [`session.curw`](/en/tmux/3.7c/reference/c-struct-session-curw/) (attribute)
- [`window.name`](/en/tmux/3.7c/reference/c-struct-window-name/) (attribute)
- [`session.options`](/en/tmux/3.7c/reference/c-struct-session-options/) (attribute)
- [`winlink.session`](/en/tmux/3.7c/reference/c-struct-winlink-session/) (attribute)
- [`winlink`](/en/tmux/3.7c/reference/c-struct-winlink/) (struct)
