diff options
author | nicm <nicm> | 2019-12-12 12:49:36 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-12-12 12:49:36 +0000 |
commit | 5134666702ce972390f39e34bed9b60fe566263a (patch) | |
tree | 0e4e8ca37b0dad58d158881356eac998e3932e37 /tmux.h | |
parent | 268f2b047a6e9b932a0ff51aa526e1df61d54165 (diff) | |
download | rtmux-5134666702ce972390f39e34bed9b60fe566263a.tar.gz rtmux-5134666702ce972390f39e34bed9b60fe566263a.tar.bz2 rtmux-5134666702ce972390f39e34bed9b60fe566263a.zip |
Change source-file to use new file code which allows it to read from
stdin.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1803,6 +1803,8 @@ extern struct client *cfg_client; void start_cfg(void); int load_cfg(const char *, struct client *, struct cmdq_item *, int, struct cmdq_item **); +int load_cfg_from_buffer(const void *, size_t, const char *, + struct client *, struct cmdq_item *, int, struct cmdq_item **); void set_cfg_file(const char *); void printflike(1, 2) cfg_add_cause(const char *, ...); void cfg_print_causes(struct cmdq_item *); @@ -2120,6 +2122,8 @@ void cmd_parse_empty(struct cmd_parse_input *); struct cmd_parse_result *cmd_parse_from_file(FILE *, struct cmd_parse_input *); struct cmd_parse_result *cmd_parse_from_string(const char *, struct cmd_parse_input *); +struct cmd_parse_result *cmd_parse_from_buffer(const void *, size_t, + struct cmd_parse_input *); struct cmd_parse_result *cmd_parse_from_arguments(int, char **, struct cmd_parse_input *); |