aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2017-01-24 19:11:46 +0000
committernicm <nicm>2017-01-24 19:11:46 +0000
commit61fce272ea60f5096711ee554c56aef9cca8c654 (patch)
treeaab0f65300ba9d33dfb7798d02aeacfb00164aa7 /tmux.h
parent3d74e89a395838e5c9c4ea101a9366be09bf03c7 (diff)
downloadrtmux-61fce272ea60f5096711ee554c56aef9cca8c654.tar.gz
rtmux-61fce272ea60f5096711ee554c56aef9cca8c654.tar.bz2
rtmux-61fce272ea60f5096711ee554c56aef9cca8c654.zip
If given an array option without an index either show or set all items,
and support -a for array options. Allow the separator for set to be specified in the options table (will be used for backwards compatibility later).
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/tmux.h b/tmux.h
index 2a26f10f..58fe992b 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1479,6 +1479,7 @@ struct options_table_entry {
const char *default_str;
long long default_num;
+ const char *separator;
const char *style;
};
@@ -1616,17 +1617,20 @@ const struct options_table_entry *options_table_entry(struct options_entry *);
struct options_entry *options_get_only(struct options *, const char *);
struct options_entry *options_get(struct options *, const char *);
void options_remove(struct options_entry *);
+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 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 *);
int options_isstring(struct options_entry *);
const char *options_tostring(struct options_entry *, int);
char *options_parse(const char *, int *);
struct options_entry *options_parse_get(struct options *, const char *, int *,
- int);
+ int);
char *options_match(const char *, int *, int *);
struct options_entry *options_match_get(struct options *, const char *, int *,
- int, int *);
+ int, int *);
const char *options_get_string(struct options *, const char *);
long long options_get_number(struct options *, const char *);
const struct grid_cell *options_get_style(struct options *, const char *);