]> git.sur5r.net Git - i3/i3/blob - include/commands_parser.h
Merge branch 'master' into next
[i3/i3] / include / commands_parser.h
1 /*
2  * vim:ts=4:sw=4:expandtab
3  *
4  * i3 - an improved dynamic tiling window manager
5  * © 2009-2012 Michael Stapelberg and contributors (see also: LICENSE)
6  *
7  * commands.c: all command functions (see commands_parser.c)
8  *
9  */
10 #ifndef _COMMANDS_PARSER_H
11 #define _COMMANDS_PARSER_H
12
13 /*
14  * Holds the result of a call to any command. When calling
15  * parse_command("floating enable, border none"), the parser will internally
16  * use a struct CommandResult when calling cmd_floating and cmd_border.
17  * parse_command will also return another struct CommandResult, whose
18  * json_output is set to a map of individual json_outputs and whose
19  * needs_tree_trender is true if any individual needs_tree_render was true.
20  *
21  */
22 struct CommandResult {
23     /* The JSON-serialized output of this command. */
24     char *json_output;
25
26     /* Whether the command requires calling tree_render. */
27     bool needs_tree_render;
28 };
29
30 struct CommandResult *parse_command(const char *input);
31
32 #endif