# cmd_source_file_done

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-source-file.c#L83
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-cmd-source-file-c-cmd_source_file_done/

```c
static void cmd_source_file_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

- [`cmd_source_file_complete`](/en/tmux/3.2a/reference/c-function-cmd-source-file-c-cmd_source_file_complete/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-source-file.c#L110)
- [`cmdq_continue`](/en/tmux/3.2a/reference/c-function-cmdq_continue/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-source-file.c#L111)
- [`cmdq_error`](/en/tmux/3.2a/reference/c-function-cmdq_error/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-source-file.c#L97)
- [`file_read`](/en/tmux/3.2a/reference/c-function-file_read/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-source-file.c#L108)
- [`load_cfg_from_buffer`](/en/tmux/3.2a/reference/c-function-load_cfg_from_buffer/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-source-file.c#L99)

## Referenced by

- [`cmd_source_file_exec`](/en/tmux/3.2a/reference/c-function-cmd-source-file-c-cmd_source_file_exec/) (function)

## Referenced declarations

- [`cmd_source_file_data.after`](/en/tmux/3.2a/reference/c-struct-cmd_source_file_data-after/) (attribute)
- [`client`](/en/tmux/3.2a/reference/c-struct-client/) (struct)
- [`CMD_RETURN_ERROR`](/en/tmux/3.2a/reference/c-enum-cmd_retval-cmd_return_error/) (constant)
- [`cmd_source_file_data.current`](/en/tmux/3.2a/reference/c-struct-cmd_source_file_data-current/) (attribute)
- [`cmd_source_file_data.files`](/en/tmux/3.2a/reference/c-struct-cmd_source_file_data-files/) (attribute)
- [`cmd_source_file_data.flags`](/en/tmux/3.2a/reference/c-struct-cmd_source_file_data-flags/) (attribute)
- [`cmd_source_file_data.item`](/en/tmux/3.2a/reference/c-struct-cmd_source_file_data-item/) (attribute)
- [`cmd_source_file_data.retval`](/en/tmux/3.2a/reference/c-struct-cmd_source_file_data-retval/) (attribute)
