diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2015-09-12 02:38:03 -0700 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2015-09-12 02:38:03 -0700 |
| commit | cd07f33804543295e9bd3e1dff141412608bd45c (patch) | |
| tree | 8a8ac30c539f4a63bb249b8c5e27e724a4241c9f /include/commands.h | |
| parent | 3b0f4e5c9e7ce1e167d9330c97f2b0f68b3d1ab8 (diff) | |
new_workspace null behavior + testmap functions + regex
Diffstat (limited to 'include/commands.h')
| -rw-r--r-- | include/commands.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/include/commands.h b/include/commands.h index 5c87be51..69ab1380 100644 --- a/include/commands.h +++ b/include/commands.h @@ -3,19 +3,21 @@ #include <stdbool.h> #include "config.h" +typedef enum cmd_status { + CMD_SUCCESS, + CMD_FAILURE, + CMD_DEFER, +} sway_cmd(char *criteria, int argc, char **argv); + struct cmd_handler { - char *command; - enum cmd_status { - CMD_SUCCESS, - CMD_FAILURE, - CMD_DEFER, - } (*handle)(int argc, char **argv); + const char*command; + sway_cmd *handle; }; enum cmd_status handle_command(char *command); // Handles commands during config enum cmd_status config_command(char *command); -void remove_view_from_scratchpad(); +void remove_view_from_scratchpad(swayc_t *view); #endif |
