diff options
author | Brendan Taylor <whateley@gmail.com> | 2011-01-13 13:46:31 -0700 |
---|---|---|
committer | Brendan Taylor <whateley@gmail.com> | 2011-01-13 17:52:42 -0700 |
commit | 9340e4f23264c7e820b52f18de5ca29132c68e72 (patch) | |
tree | 3b12f735053525519eeeef001b495864cab0ddfe /src/uzbl-core.h | |
parent | 1bb84ff92e4ed2e7594a8311ec95428a4a0600cc (diff) |
refactor parse_command and parse_cmd_line
Diffstat (limited to 'src/uzbl-core.h')
-rw-r--r-- | src/uzbl-core.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/uzbl-core.h b/src/uzbl-core.h index f81722d..ef948ca 100644 --- a/src/uzbl-core.h +++ b/src/uzbl-core.h @@ -479,10 +479,21 @@ builtins(); typedef void (*Command)(WebKitWebView*, GArray *argv, GString *result); typedef struct { - Command function; - gboolean no_split; + const gchar *key; + Command function; + gboolean no_split; } CommandInfo; +CommandInfo * +parse_command_parts(const gchar *line, GArray *a); + +void +parse_command_arguments(const gchar *p, GArray *a, gboolean no_split); + +void +run_parsed_command(CommandInfo *c, GArray *a, GString *result); + + typedef struct { gchar *name; gchar *cmd; |