diff options
author | taiyu <taiyu.len@gmail.com> | 2015-09-10 11:07:40 -0700 |
---|---|---|
committer | taiyu <taiyu.len@gmail.com> | 2015-09-10 11:07:40 -0700 |
commit | aaa0923bc4fe4ffda114482a9b8023c90c26c8dc (patch) | |
tree | 7c12a435bf56e4ebfcae689ce46280eeeb330346 /include/commands.h | |
parent | mode supports multi token names (diff) | |
download | sway-aaa0923bc4fe4ffda114482a9b8023c90c26c8dc.tar.gz sway-aaa0923bc4fe4ffda114482a9b8023c90c26c8dc.tar.zst sway-aaa0923bc4fe4ffda114482a9b8023c90c26c8dc.zip |
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 @@ | |||
5 | 5 | ||
6 | struct cmd_handler { | 6 | struct cmd_handler { |
7 | char *command; | 7 | char *command; |
8 | bool (*handle)(int argc, char **argv); | 8 | enum cmd_status { |
9 | enum { | 9 | CMD_SUCCESS, |
10 | CMD_COMPOSITOR_READY, | 10 | CMD_FAILURE, |
11 | CMD_KEYBIND, | 11 | CMD_DEFER, |
12 | CMD_ANYTIME | 12 | } (*handle)(int argc, char **argv); |
13 | } config_type; | ||
14 | }; | 13 | }; |
15 | 14 | ||
16 | bool handle_command(char *command); | 15 | enum cmd_status handle_command(char *command); |
17 | // Handles commands during config | 16 | // Handles commands during config |
18 | bool config_command(char *command); | 17 | enum cmd_status config_command(char *command); |
19 | 18 | ||
20 | void remove_view_from_scratchpad(); | 19 | void remove_view_from_scratchpad(); |
21 | 20 | ||