/* * vim:ts=4:sw=4:expandtab * * i3 - an improved dynamic tiling window manager * © 2009-2012 Michael Stapelberg and contributors (see also: LICENSE) * * commands.c: all command functions (see commands_parser.c) * */ #pragma once #include /* * Holds an intermediate represenation of the result of a call to any command. * When calling parse_command("floating enable, border none"), the parser will * internally use this struct when calling cmd_floating and cmd_border. */ struct CommandResultIR { /* The JSON generator to append a reply to. */ yajl_gen json_gen; /* The next state to transition to. Passed to the function so that we can * determine the next state as a result of a function call, like * cfg_criteria_pop_state() does. */ int next_state; /* Whether the command requires calling tree_render. */ bool needs_tree_render; }; struct CommandResultIR *parse_command(const char *input);