# window_add_ref

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

```c
void window_add_ref(struct window *w, const char *from)
```

## Parameters

- `w` (`struct window *`)
- `from` (`const char *`)

## Called by

- [`alerts_queue`](/en/tmux/latest/reference/c-function-alerts_queue/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/alerts.c#L171)
- [`notify_add`](/en/tmux/latest/reference/c-function-notify-c-notify_add/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L224)
- [`winlink_set_window`](/en/tmux/latest/reference/c-function-winlink_set_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L192)

## Calls

- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L392)

## Referenced declarations

- [`window.id`](/en/tmux/latest/reference/c-struct-window-id/) (attribute)
- [`window.references`](/en/tmux/latest/reference/c-struct-window-references/) (attribute)
- [`window`](/en/tmux/latest/reference/c-struct-window/) (struct)
