diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-04-13 18:59:42 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-04-13 18:59:42 +0000 |
commit | 526936994d11c3b8af12bd0feb50accc97e7914f (patch) | |
tree | a1c4da712a8675d00c89cf927180e1393213a16e /usr.bin/tmux/tmux.h | |
parent | 384cbe3b1bc3d6b900b7a8aebcd81c60cf3b06cc (diff) |
Add helpers for the simple case of parse string and add to command queue.
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r-- | usr.bin/tmux/tmux.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h index fd1f5ea12bd..1c8a51ef0f5 100644 --- a/usr.bin/tmux/tmux.h +++ b/usr.bin/tmux/tmux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.988 2020/04/13 16:19:37 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.989 2020/04/13 18:59:41 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -2089,6 +2089,12 @@ void cmd_parse_empty(struct cmd_parse_input *); struct cmd_parse_result *cmd_parse_from_file(FILE *, struct cmd_parse_input *); struct cmd_parse_result *cmd_parse_from_string(const char *, struct cmd_parse_input *); +enum cmd_parse_status cmd_parse_and_insert(const char *, + struct cmd_parse_input *, struct cmdq_item *, + struct cmdq_state *, char **); +enum cmd_parse_status cmd_parse_and_append(const char *, + struct cmd_parse_input *, struct client *, + struct cmdq_state *, char **); struct cmd_parse_result *cmd_parse_from_buffer(const void *, size_t, struct cmd_parse_input *); struct cmd_parse_result *cmd_parse_from_arguments(int, char **, |