summaryrefslogtreecommitdiffstats
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2021-08-20 18:59:53 +0000
committernicm <nicm>2021-08-20 18:59:53 +0000
commit90dd474c3ea8bf10bde6ee15eaaf9f3af3fb46f6 (patch)
treed7a208a65eaa5d17da7f7b764cfcf94ebfe01366 /tmux.h
parent6cbc83c6a64f272575aac1ee32cc0a0b1cb75c7b (diff)
Expose args_value struct (will be needed soon) and add some missing frees.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/tmux.h b/tmux.h
index 26f9dc3e..63ad9e86 100644
--- a/tmux.h
+++ b/tmux.h
@@ -37,7 +37,6 @@
extern char **environ;
struct args;
-struct args_value;
struct client;
struct cmd;
struct cmd_find_state;
@@ -1356,7 +1355,13 @@ struct message_entry {
};
TAILQ_HEAD(message_list, message_entry);
-/* Parsed arguments structures. */
+/* Argument value. */
+struct args_value {
+ char *value;
+ TAILQ_ENTRY(args_value) entry;
+};
+
+/* Arguments set. */
struct args_entry;
RB_HEAD(args_tree, args_entry);
struct args {
@@ -2191,8 +2196,8 @@ int args_has(struct args *, u_char);
const char *args_get(struct args *, u_char);
u_char args_first(struct args *, struct args_entry **);
u_char args_next(struct args_entry **);
-const char *args_first_value(struct args *, u_char, struct args_value **);
-const char *args_next_value(struct args_value **);
+struct args_value *args_first_value(struct args *, u_char);
+struct args_value *args_next_value(struct args_value *);
long long args_strtonum(struct args *, u_char, long long, long long,
char **);
long long args_percentage(struct args *, u_char, long long,