diff options
author | Drew DeVault <[email protected]> | 2015-08-05 17:30:40 -0400 |
---|---|---|
committer | Drew DeVault <[email protected]> | 2015-08-05 17:30:47 -0400 |
commit | e07c77fbb78b1d57a19904f2f5a7309ddfc40955 (patch) | |
tree | 8d01247340d324cf197706b4f1484c00ef0b1e0c /sway/commands.h | |
parent | f82660b01e2e24b30e608e945523709ce9bd7bea (diff) |
Build out command subsystem
Everyone loves code stolen from your own projects
Diffstat (limited to 'sway/commands.h')
-rw-r--r-- | sway/commands.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sway/commands.h b/sway/commands.h new file mode 100644 index 00000000..f99a5201 --- /dev/null +++ b/sway/commands.h @@ -0,0 +1,13 @@ +#ifndef _SWAY_COMMANDS_H +#define _SWAY_COMMANDS_H +#include <stdbool.h> +#include "config.h" + +struct cmd_handler { + char *command; + int (*handle)(struct sway_config *config, int argc, char **argv); +}; + +int handle_command(struct sway_config *config, char *command); + +#endif |