# control_append_data

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

```c
static struct evbuffer * control_append_data(struct client *c, struct control_pane *cp, uint64_t age, struct evbuffer *message, struct window_pane *wp, size_t size)
```

## Parameters

- `c` (`struct client *`)
- `cp` (`struct control_pane *`)
- `age` (`uint64_t`)
- `message` (`struct evbuffer *`)
- `wp` (`struct window_pane *`)
- `size` (`size_t`)

## Called by

- [`control_write_pending`](/en/tmux/3.7c/reference/c-function-control-c-control_write_pending/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L710)

## Calls

- [`fatalx`](/en/tmux/3.7c/reference/c-function-fatalx/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L625)
- [`window_pane_get_new_data`](/en/tmux/3.7c/reference/c-function-window_pane_get_new_data/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L634)
- [`window_pane_update_used_data`](/en/tmux/3.7c/reference/c-function-window_pane_update_used_data/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L649)

## Referenced declarations

- [`client`](/en/tmux/3.7c/reference/c-struct-client/) (struct)
- [`CLIENT_CONTROL_PAUSEAFTER`](/en/tmux/3.7c/reference/c-define-tmux-h-client_control_pauseafter/) (constant)
- [`control_pane`](/en/tmux/3.7c/reference/c-struct-control_pane/) (struct)
- [`client.flags`](/en/tmux/3.7c/reference/c-struct-client-flags/) (attribute)
- [`window_pane.id`](/en/tmux/3.7c/reference/c-struct-window_pane-id/) (attribute)
- [`control_pane.offset`](/en/tmux/3.7c/reference/c-struct-control_pane-offset/) (attribute)
- [`window_pane`](/en/tmux/3.7c/reference/c-struct-window_pane/) (struct)
