aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2021-02-22 08:18:13 +0000
committernicm <nicm>2021-02-22 08:18:13 +0000
commit6876381276ff2c2a40d304ada27651fdaf1cd8a7 (patch)
tree1b38398f851f7062ea015584b660a327c5939165 /tmux.h
parente858270006a9041b9016ed9e6cc12d622ac8fe31 (diff)
downloadrtmux-6876381276ff2c2a40d304ada27651fdaf1cd8a7.tar.gz
rtmux-6876381276ff2c2a40d304ada27651fdaf1cd8a7.tar.bz2
rtmux-6876381276ff2c2a40d304ada27651fdaf1cd8a7.zip
Move config file path expansion much earlier, keep the list of paths
around rather than freeing later, and add a config_files format variable containing it. Suggested by kn@ a while back.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/tmux.h b/tmux.h
index f3f6a867..fb15356a 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1887,7 +1887,6 @@ const char *sig2name(int);
const char *find_cwd(void);
const char *find_home(void);
const char *getversion(void);
-void expand_paths(const char *, char ***, u_int *);
/* proc.c */
struct imsg;
@@ -1907,13 +1906,14 @@ pid_t proc_fork_and_daemon(int *);
/* cfg.c */
extern int cfg_finished;
extern struct client *cfg_client;
+extern char **cfg_files;
+extern u_int cfg_nfiles;
+extern int cfg_quiet;
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 *);
-const char *get_cfg_file(void);
void printflike(1, 2) cfg_add_cause(const char *, ...);
void cfg_print_causes(struct cmdq_item *);
void cfg_show_causes(struct session *);