aboutsummaryrefslogtreecommitdiff
path: root/include/commands.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/commands.h')
-rw-r--r--include/commands.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/commands.h b/include/commands.h
new file mode 100644
index 00000000..c2046e13
--- /dev/null
+++ b/include/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;
+ bool (*handle)(struct sway_config *config, int argc, char **argv);
+};
+
+bool handle_command(struct sway_config *config, char *command);
+
+#endif