# cmd_list_windows_session

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-windows.c#L85
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-cmd-list-windows-c-cmd_list_windows_session/

```c
static void cmd_list_windows_session(struct cmd *, struct session *, struct cmdq_item *, int)
```

## Parameters

- `self` (`struct cmd *`)
- `s` (`struct session *`)
- `item` (`struct cmdq_item *`)
- `type` (`int`)

## Called by

- [`cmd_list_windows_exec`](/en/tmux/3.2a/reference/c-function-cmd-list-windows-c-cmd_list_windows_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-windows.c#L70)
- [`cmd_list_windows_server`](/en/tmux/3.2a/reference/c-function-cmd-list-windows-c-cmd_list_windows_server/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-windows.c#L81)

## Calls

- [`args_get`](/en/tmux/3.2a/reference/c-function-args_get/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-windows.c#L96)
- [`cmd_get_args`](/en/tmux/3.2a/reference/c-function-cmd_get_args/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-windows.c#L88)
- [`cmdq_print`](/en/tmux/3.2a/reference/c-function-cmdq_print/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-windows.c#L123)
- [`format_add`](/en/tmux/3.2a/reference/c-function-format_add/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-windows.c#L112)
- [`format_defaults`](/en/tmux/3.2a/reference/c-function-format_defaults/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-windows.c#L113)
- [`format_expand`](/en/tmux/3.2a/reference/c-function-format_expand/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-windows.c#L116)
- [`format_free`](/en/tmux/3.2a/reference/c-function-format_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-windows.c#L127)
- [`format_true`](/en/tmux/3.2a/reference/c-function-format_true/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-windows.c#L117)

## Other function references

- [`cmdq_get_client`](/en/tmux/3.2a/reference/c-function-cmdq_get_client/) (function)
- [`format_create`](/en/tmux/3.2a/reference/c-function-format_create/) (function)

## Referenced declarations

- [`cmd`](/en/tmux/3.2a/reference/c-struct-cmd/) (struct)
- [`cmdq_item`](/en/tmux/3.2a/reference/c-struct-cmdq_item/) (struct)
- [`FORMAT_NONE`](/en/tmux/3.2a/reference/c-define-tmux-h-format_none/) (constant)
- [`format_tree.item`](/en/tmux/3.2a/reference/c-struct-format_tree-item/) (attribute)
- [`LIST_WINDOWS_TEMPLATE`](/en/tmux/3.2a/reference/c-define-cmd-list-windows-c-list_windows_template/) (constant)
- [`LIST_WINDOWS_WITH_SESSION_TEMPLATE`](/en/tmux/3.2a/reference/c-define-cmd-list-windows-c-list_windows_with_session_template/) (constant)
- [`format_tree.s`](/en/tmux/3.2a/reference/c-struct-format_tree-s/) (attribute)
- [`session`](/en/tmux/3.2a/reference/c-struct-session/) (struct)
- [`format_tree.type`](/en/tmux/3.2a/reference/c-struct-format_tree-type/) (attribute)
- [`session.windows`](/en/tmux/3.2a/reference/c-struct-session-windows/) (attribute)
- [`format_tree.wl`](/en/tmux/3.2a/reference/c-struct-format_tree-wl/) (attribute)
