# control_discard_pane

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

```c
static void control_discard_pane(struct client *c, struct control_pane *cp)
```

## Parameters

- `c` (`struct client *`)
- `cp` (`struct control_pane *`)

## Called by

- [`control_check_age`](/en/tmux/3.2a/reference/c-function-control-c-control_check_age/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L454)
- [`control_discard`](/en/tmux/3.2a/reference/c-function-control_discard/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L803)
- [`control_pause_pane`](/en/tmux/3.2a/reference/c-function-control_pause_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L382)

## Calls

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

## Referenced declarations

- [`control_pane.blocks`](/en/tmux/3.2a/reference/c-struct-control_pane-blocks/) (attribute)
- [`client`](/en/tmux/3.2a/reference/c-struct-client/) (struct)
- [`control_pane`](/en/tmux/3.2a/reference/c-struct-control_pane/) (struct)
- [`client.control_state`](/en/tmux/3.2a/reference/c-struct-client-control_state/) (attribute)
- [`control_block.entry`](/en/tmux/3.2a/reference/c-struct-control_block-entry/) (attribute)
