# cmd_load_buffer_done

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-load-buffer.c#L54
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-cmd-load-buffer-c-cmd_load_buffer_done/

```c
static void cmd_load_buffer_done(struct client *c, const char *path, int error, int closed, struct evbuffer *buffer, void *data)
```

## Parameters

- `c` (`struct client *`)
- `path` (`const char *`)
- `error` (`int`)
- `closed` (`int`)
- `buffer` (`struct evbuffer *`)
- `data` (`void *`)

## Calls

- [`cmdq_continue`](/en/tmux/latest/reference/c-function-cmdq_continue/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-load-buffer.c#L84)
- [`cmdq_error`](/en/tmux/latest/reference/c-function-cmdq_error/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-load-buffer.c#L69)
- [`paste_set`](/en/tmux/latest/reference/c-function-paste_set/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-load-buffer.c#L73)
- [`server_client_unref`](/en/tmux/latest/reference/c-function-server_client_unref/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-load-buffer.c#L82)
- [`tty_set_selection`](/en/tmux/latest/reference/c-function-tty_set_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-load-buffer.c#L80)
- [`xmalloc`](/en/tmux/latest/reference/c-function-xmalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-load-buffer.c#L71)

## Referenced by

- [`cmd_load_buffer_exec`](/en/tmux/latest/reference/c-function-cmd-load-buffer-c-cmd_load_buffer_exec/) (function)

## Referenced declarations

- [`__unused`](/en/tmux/latest/reference/c-define-compat-h-__unused/) (constant)
- [`client`](/en/tmux/latest/reference/c-struct-client/) (struct)
- [`cmd_load_buffer_data.client`](/en/tmux/latest/reference/c-struct-cmd_load_buffer_data-client/) (attribute)
- [`CLIENT_DEAD`](/en/tmux/latest/reference/c-define-tmux-h-client_dead/) (constant)
- [`client.flags`](/en/tmux/latest/reference/c-struct-client-flags/) (attribute)
- [`cmd_load_buffer_data.item`](/en/tmux/latest/reference/c-struct-cmd_load_buffer_data-item/) (attribute)
- [`cmd_load_buffer_data.name`](/en/tmux/latest/reference/c-struct-cmd_load_buffer_data-name/) (attribute)
- [`client.session`](/en/tmux/latest/reference/c-struct-client-session/) (attribute)
- [`client.tty`](/en/tmux/latest/reference/c-struct-client-tty/) (attribute)
