summaryrefslogtreecommitdiffstats
path: root/include/commands.h
diff options
context:
space:
mode:
authorLibravatar taiyu <taiyu.len@gmail.com>2015-09-10 11:07:40 -0700
committerLibravatar taiyu <taiyu.len@gmail.com>2015-09-10 11:07:40 -0700
commitaaa0923bc4fe4ffda114482a9b8023c90c26c8dc (patch)
tree7c12a435bf56e4ebfcae689ce46280eeeb330346 /include/commands.h
parentmode supports multi token names (diff)
downloadsway-aaa0923bc4fe4ffda114482a9b8023c90c26c8dc.tar.gz
sway-aaa0923bc4fe4ffda114482a9b8023c90c26c8dc.tar.zst
sway-aaa0923bc4fe4ffda114482a9b8023c90c26c8dc.zip
cmd status + workspace ws output op
Diffstat (limited to 'include/commands.h')
-rw-r--r--include/commands.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/include/commands.h b/include/commands.h
index 0a38ce43..5c87be51 100644
--- a/include/commands.h
+++ b/include/commands.h
@@ -5,17 +5,16 @@
5 5
6struct cmd_handler { 6struct cmd_handler {
7 char *command; 7 char *command;
8 bool (*handle)(int argc, char **argv); 8 enum cmd_status {
9 enum { 9 CMD_SUCCESS,
10 CMD_COMPOSITOR_READY, 10 CMD_FAILURE,
11 CMD_KEYBIND, 11 CMD_DEFER,
12 CMD_ANYTIME 12 } (*handle)(int argc, char **argv);
13 } config_type;
14}; 13};
15 14
16bool handle_command(char *command); 15enum cmd_status handle_command(char *command);
17// Handles commands during config 16// Handles commands during config
18bool config_command(char *command); 17enum cmd_status config_command(char *command);
19 18
20void remove_view_from_scratchpad(); 19void remove_view_from_scratchpad();
21 20