diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-08-16 11:02:56 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-08-16 11:02:56 -0400 |
commit | 7f8ebb7d0dcb687574554b877a0e84f48718df37 (patch) | |
tree | 9a58f9276059d3c88cb3a92d8229a911b33b0faf /include/commands.h | |
parent | Add split [h|v|horizontal|vertical] command (diff) | |
download | sway-7f8ebb7d0dcb687574554b877a0e84f48718df37.tar.gz sway-7f8ebb7d0dcb687574554b877a0e84f48718df37.tar.zst sway-7f8ebb7d0dcb687574554b877a0e84f48718df37.zip |
Move headers to include/
Diffstat (limited to 'include/commands.h')
-rw-r--r-- | include/commands.h | 13 |
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 @@ | |||
1 | #ifndef _SWAY_COMMANDS_H | ||
2 | #define _SWAY_COMMANDS_H | ||
3 | #include <stdbool.h> | ||
4 | #include "config.h" | ||
5 | |||
6 | struct cmd_handler { | ||
7 | char *command; | ||
8 | bool (*handle)(struct sway_config *config, int argc, char **argv); | ||
9 | }; | ||
10 | |||
11 | bool handle_command(struct sway_config *config, char *command); | ||
12 | |||
13 | #endif | ||