diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-09-13 19:46:16 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-09-13 19:46:16 -0400 |
commit | e505abfe75923d06098f6230e5a7ba39c091d3ce (patch) | |
tree | fc90bdf0afed21d725f6ee7a9245e397e1577517 /include/commands.h | |
parent | Merge pull request #179 from taiyu-len/master (diff) | |
download | sway-e505abfe75923d06098f6230e5a7ba39c091d3ce.tar.gz sway-e505abfe75923d06098f6230e5a7ba39c091d3ce.tar.zst sway-e505abfe75923d06098f6230e5a7ba39c091d3ce.zip |
Revert "new_workspace null behavior + testmap functions + regex"
This reverts commit e1d18e42a8f3a597b9bf5f1bb2ab6c346e4e7983.
Fixes #180
cc @taiyu-len
Diffstat (limited to 'include/commands.h')
-rw-r--r-- | include/commands.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/include/commands.h b/include/commands.h index 69ab1380..5c87be51 100644 --- a/include/commands.h +++ b/include/commands.h | |||
@@ -3,21 +3,19 @@ | |||
3 | #include <stdbool.h> | 3 | #include <stdbool.h> |
4 | #include "config.h" | 4 | #include "config.h" |
5 | 5 | ||
6 | typedef enum cmd_status { | ||
7 | CMD_SUCCESS, | ||
8 | CMD_FAILURE, | ||
9 | CMD_DEFER, | ||
10 | } sway_cmd(char *criteria, int argc, char **argv); | ||
11 | |||
12 | struct cmd_handler { | 6 | struct cmd_handler { |
13 | const char*command; | 7 | char *command; |
14 | sway_cmd *handle; | 8 | enum cmd_status { |
9 | CMD_SUCCESS, | ||
10 | CMD_FAILURE, | ||
11 | CMD_DEFER, | ||
12 | } (*handle)(int argc, char **argv); | ||
15 | }; | 13 | }; |
16 | 14 | ||
17 | enum cmd_status handle_command(char *command); | 15 | enum cmd_status handle_command(char *command); |
18 | // Handles commands during config | 16 | // Handles commands during config |
19 | enum cmd_status config_command(char *command); | 17 | enum cmd_status config_command(char *command); |
20 | 18 | ||
21 | void remove_view_from_scratchpad(swayc_t *view); | 19 | void remove_view_from_scratchpad(); |
22 | 20 | ||
23 | #endif | 21 | #endif |