aboutsummaryrefslogtreecommitdiffstats
path: root/include/commands.h
diff options
context:
space:
mode:
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 @@
3#include <stdbool.h> 3#include <stdbool.h>
4#include "config.h" 4#include "config.h"
5 5
6struct cmd_handler { 6
7 char *command; 7enum cmd_status {
8 enum cmd_status { 8 CMD_SUCCESS,
9 CMD_SUCCESS, 9 CMD_FAILURE,
10 CMD_FAILURE, 10 CMD_INVALID,
11 CMD_DEFER, 11 CMD_DEFER,
12 } (*handle)(int argc, char **argv); 12 // Config Blocks
13 CMD_BLOCK_END,
14 CMD_BLOCK_MODE,
13}; 15};
14 16
15enum cmd_status handle_command(char *command); 17enum cmd_status handle_command(char *command);