aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2010-02-06 23:22:27 +0000
committerNicholas Marriott <nicm@openbsd.org>2010-02-06 23:22:27 +0000
commit46511805037cf33bd9e2c6286e33417d9fd35d1f (patch)
tree1eeeeb3e2184b8dd28e011c6402532e396493ad7 /tmux.h
parentbb53c20c1882cbc909d4fe2ae3c6ad665da6abf6 (diff)
downloadrtmux-46511805037cf33bd9e2c6286e33417d9fd35d1f.tar.gz
rtmux-46511805037cf33bd9e2c6286e33417d9fd35d1f.tar.bz2
rtmux-46511805037cf33bd9e2c6286e33417d9fd35d1f.zip
Use the array.h code for the causes list.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/tmux.h b/tmux.h
index 2afaf3cc..df35f092 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1244,6 +1244,9 @@ struct set_option_entry {
const char **choices;
};
+/* List of configuration causes. */
+ARRAY_DECL(causelist, char *);
+
/* tmux.c */
extern struct options global_options;
extern struct options global_s_options;
@@ -1262,10 +1265,9 @@ int areshell(const char *);
/* cfg.c */
extern int cfg_finished;
-extern char **cfg_causes;
-extern u_int cfg_ncauses;
-void printflike3 cfg_add_cause(u_int *, char ***, const char *, ...);
-int load_cfg(const char *, struct cmd_ctx *, u_int *, char ***);
+struct causelist cfg_causes;
+void printflike2 cfg_add_cause(struct causelist *, const char *, ...);
+int load_cfg(const char *, struct cmd_ctx *, struct causelist *);
/* mode-key.c */
extern const struct mode_key_table mode_key_tables[];