multi command keybinds

This commit is contained in:
taiyu 2015-09-14 19:59:25 -07:00
parent e505abfe75
commit 0bea2e2122
6 changed files with 280 additions and 109 deletions

View file

@ -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);