# cmd_source_file_complete

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-source-file.c#L81
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-cmd-source-file-c-cmd_source_file_complete/

```c
static void cmd_source_file_complete(struct client *c, struct cmd_source_file_data *cdata)
```

## Parameters

- `c` (`struct client *`)
- `cdata` (`struct cmd_source_file_data *`)

## Called by

- [`cmd_source_file_done`](/en/tmux/latest/reference/c-function-cmd-source-file-c-cmd_source_file_done/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-source-file.c#L130)
- [`cmd_source_file_exec`](/en/tmux/latest/reference/c-function-cmd-source-file-c-cmd_source_file_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-source-file.c#L252)

## Calls

- [`cmdq_insert_after`](/en/tmux/latest/reference/c-function-cmdq_insert_after/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-source-file.c#L92)

## Other function references

- [`cmd_source_file_complete_cb`](/en/tmux/latest/reference/c-function-cmd-source-file-c-cmd_source_file_complete_cb/) (function)

## Referenced declarations

- [`cmd_source_file_data.after`](/en/tmux/latest/reference/c-struct-cmd_source_file_data-after/) (attribute)
- [`cfg_finished`](/en/tmux/latest/reference/c-variable-cfg_finished/) (attribute)
- [`client`](/en/tmux/latest/reference/c-struct-client/) (struct)
- [`CMD_RETURN_ERROR`](/en/tmux/latest/reference/c-enum-cmd_retval-cmd_return_error/) (constant)
- [`cmd_source_file_data`](/en/tmux/latest/reference/c-struct-cmd_source_file_data/) (struct)
- [`cmdq_get_callback`](/en/tmux/latest/reference/c-define-tmux-h-cmdq_get_callback/) (constant)
- [`cmd_source_file_data.files`](/en/tmux/latest/reference/c-struct-cmd_source_file_data-files/) (attribute)
- [`cmd_source_file_data.nfiles`](/en/tmux/latest/reference/c-struct-cmd_source_file_data-nfiles/) (attribute)
- [`client.retval`](/en/tmux/latest/reference/c-struct-client-retval/) (attribute)
- [`cmd_source_file_data.retval`](/en/tmux/latest/reference/c-struct-cmd_source_file_data-retval/) (attribute)
- [`client.session`](/en/tmux/latest/reference/c-struct-client-session/) (attribute)
