summaryrefslogtreecommitdiff
path: root/include/commands.h
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2015-09-13 19:46:16 -0400
committerDrew DeVault <[email protected]>2015-09-13 19:46:16 -0400
commite505abfe75923d06098f6230e5a7ba39c091d3ce (patch)
treefc90bdf0afed21d725f6ee7a9245e397e1577517 /include/commands.h
parent9c8f1fb9649c5673cd6b42230c0784f099a62db7 (diff)
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.h16
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 @@
#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 {
- const char*command;
- sway_cmd *handle;
+ char *command;
+ enum cmd_status {
+ CMD_SUCCESS,
+ CMD_FAILURE,
+ CMD_DEFER,
+ } (*handle)(int argc, char **argv);
};
enum cmd_status handle_command(char *command);
// Handles commands during config
enum cmd_status config_command(char *command);
-void remove_view_from_scratchpad(swayc_t *view);
+void remove_view_from_scratchpad();
#endif