aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2019-03-18 11:58:40 +0000
committernicm <nicm>2019-03-18 11:58:40 +0000
commitce6be7afd4d10b542f9cce8634d6bdd81754f775 (patch)
tree01a13843f212816c057069a13d02b46743ed8fd0 /tmux.h
parentd2d43987d0f35af2bc012f1260fdb81c851fe390 (diff)
downloadrtmux-ce6be7afd4d10b542f9cce8634d6bdd81754f775.tar.gz
rtmux-ce6be7afd4d10b542f9cce8634d6bdd81754f775.tar.bz2
rtmux-ce6be7afd4d10b542f9cce8634d6bdd81754f775.zip
Make array options a sparse tree instead of an array of char * and
remove the size limit.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index 2b083e44..a1ed1b46 100644
--- a/tmux.h
+++ b/tmux.h
@@ -50,6 +50,7 @@ struct mode_tree_data;
struct mouse_event;
struct options;
struct options_entry;
+struct options_array_item;
struct session;
struct tmuxpeer;
struct tmuxproc;
@@ -1642,8 +1643,12 @@ void options_array_clear(struct options_entry *);
const char *options_array_get(struct options_entry *, u_int);
int options_array_set(struct options_entry *, u_int, const char *,
int);
-int options_array_size(struct options_entry *, u_int *);
void options_array_assign(struct options_entry *, const char *);
+struct options_array_item *options_array_first(struct options_entry *);
+struct options_array_item *options_array_next(struct options_array_item *);
+u_int options_array_item_index(struct options_array_item *);
+const char *options_array_item_value(struct options_array_item *);
+int options_isarray(struct options_entry *);
int options_isstring(struct options_entry *);
const char *options_tostring(struct options_entry *, int, int);
char *options_parse(const char *, int *);