diff options
author | taiyu <[email protected]> | 2015-09-10 11:07:40 -0700 |
---|---|---|
committer | taiyu <[email protected]> | 2015-09-10 11:07:40 -0700 |
commit | aaa0923bc4fe4ffda114482a9b8023c90c26c8dc (patch) | |
tree | 7c12a435bf56e4ebfcae689ce46280eeeb330346 /include/commands.h | |
parent | 6388241abb7e2e66e716fc128e658d3d3419442a (diff) |
cmd status + workspace ws output op
Diffstat (limited to 'include/commands.h')
-rw-r--r-- | include/commands.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/include/commands.h b/include/commands.h index 0a38ce43..5c87be51 100644 --- a/include/commands.h +++ b/include/commands.h @@ -5,17 +5,16 @@ struct cmd_handler { char *command; - bool (*handle)(int argc, char **argv); - enum { - CMD_COMPOSITOR_READY, - CMD_KEYBIND, - CMD_ANYTIME - } config_type; + enum cmd_status { + CMD_SUCCESS, + CMD_FAILURE, + CMD_DEFER, + } (*handle)(int argc, char **argv); }; -bool handle_command(char *command); +enum cmd_status handle_command(char *command); // Handles commands during config -bool config_command(char *command); +enum cmd_status config_command(char *command); void remove_view_from_scratchpad(); |