summaryrefslogtreecommitdiff
path: root/include/commands.h
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2015-09-29 07:43:50 -0400
committerDrew DeVault <[email protected]>2015-09-29 07:43:50 -0400
commitfe3b85d65ff84133cfbe43c11a5462beddbefaff (patch)
tree46356ae7b43ce6a2ea133771784a072294918f78 /include/commands.h
parentd7f8bbd35323e9d83b10ab9fbd8715ec4f1aaa8c (diff)
parent494499617090eccf73a0c75380ca884e77548a9f (diff)
Merge pull request #181 from taiyu-len/master
multi command keybinds
Diffstat (limited to 'include/commands.h')
-rw-r--r--include/commands.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/include/commands.h b/include/commands.h
index 5c87be51..1b4cd9ca 100644
--- a/include/commands.h
+++ b/include/commands.h
@@ -3,13 +3,15 @@
#include <stdbool.h>
#include "config.h"
-struct cmd_handler {
- char *command;
- enum cmd_status {
- CMD_SUCCESS,
- CMD_FAILURE,
- CMD_DEFER,
- } (*handle)(int argc, char **argv);
+
+enum cmd_status {
+ CMD_SUCCESS,
+ CMD_FAILURE,
+ CMD_INVALID,
+ CMD_DEFER,
+ // Config Blocks
+ CMD_BLOCK_END,
+ CMD_BLOCK_MODE,
};
enum cmd_status handle_command(char *command);