diff options
Diffstat (limited to 'include/sway/commands.h')
-rw-r--r-- | include/sway/commands.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h index 013a7b82..27058587 100644 --- a/include/sway/commands.h +++ b/include/sway/commands.h | |||
@@ -3,13 +3,14 @@ | |||
3 | 3 | ||
4 | #include <wlr/util/edges.h> | 4 | #include <wlr/util/edges.h> |
5 | #include "config.h" | 5 | #include "config.h" |
6 | #include "stringop.h" | ||
6 | 7 | ||
7 | struct sway_container; | 8 | struct sway_container; |
8 | 9 | ||
9 | typedef struct cmd_results *sway_cmd(int argc, char **argv); | 10 | typedef struct cmd_results *sway_cmd(int argc, char **argv); |
10 | 11 | ||
11 | struct cmd_handler { | 12 | struct cmd_handler { |
12 | char *command; | 13 | const char *command; |
13 | sway_cmd *handle; | 14 | sway_cmd *handle; |
14 | }; | 15 | }; |
15 | 16 | ||
@@ -46,7 +47,7 @@ enum expected_args { | |||
46 | struct cmd_results *checkarg(int argc, const char *name, | 47 | struct cmd_results *checkarg(int argc, const char *name, |
47 | enum expected_args type, int val); | 48 | enum expected_args type, int val); |
48 | 49 | ||
49 | const struct cmd_handler *find_handler(char *line, | 50 | const struct cmd_handler *find_handler(const char *line, |
50 | const struct cmd_handler *cmd_handlers, size_t handlers_size); | 51 | const struct cmd_handler *cmd_handlers, size_t handlers_size); |
51 | 52 | ||
52 | /** | 53 | /** |
@@ -76,7 +77,7 @@ struct cmd_results *config_commands_command(char *exec); | |||
76 | /** | 77 | /** |
77 | * Allocates a cmd_results object. | 78 | * Allocates a cmd_results object. |
78 | */ | 79 | */ |
79 | struct cmd_results *cmd_results_new(enum cmd_status status, const char *error, ...); | 80 | struct cmd_results *cmd_results_new(enum cmd_status status, const char *error, ...) _SWAY_ATTRIB_PRINTF(2, 3); |
80 | /** | 81 | /** |
81 | * Frees a cmd_results object. | 82 | * Frees a cmd_results object. |
82 | */ | 83 | */ |
@@ -159,12 +160,11 @@ sway_cmd cmd_new_float; | |||
159 | sway_cmd cmd_new_window; | 160 | sway_cmd cmd_new_window; |
160 | sway_cmd cmd_nop; | 161 | sway_cmd cmd_nop; |
161 | sway_cmd cmd_opacity; | 162 | sway_cmd cmd_opacity; |
162 | sway_cmd cmd_new_float; | ||
163 | sway_cmd cmd_new_window; | ||
164 | sway_cmd cmd_no_focus; | 163 | sway_cmd cmd_no_focus; |
165 | sway_cmd cmd_output; | 164 | sway_cmd cmd_output; |
166 | sway_cmd cmd_permit; | 165 | sway_cmd cmd_permit; |
167 | sway_cmd cmd_popup_during_fullscreen; | 166 | sway_cmd cmd_popup_during_fullscreen; |
167 | sway_cmd cmd_primary_selection; | ||
168 | sway_cmd cmd_reject; | 168 | sway_cmd cmd_reject; |
169 | sway_cmd cmd_reload; | 169 | sway_cmd cmd_reload; |
170 | sway_cmd cmd_rename; | 170 | sway_cmd cmd_rename; |
@@ -252,6 +252,7 @@ sway_cmd input_cmd_click_method; | |||
252 | sway_cmd input_cmd_drag; | 252 | sway_cmd input_cmd_drag; |
253 | sway_cmd input_cmd_drag_lock; | 253 | sway_cmd input_cmd_drag_lock; |
254 | sway_cmd input_cmd_dwt; | 254 | sway_cmd input_cmd_dwt; |
255 | sway_cmd input_cmd_dwtp; | ||
255 | sway_cmd input_cmd_events; | 256 | sway_cmd input_cmd_events; |
256 | sway_cmd input_cmd_left_handed; | 257 | sway_cmd input_cmd_left_handed; |
257 | sway_cmd input_cmd_map_from_region; | 258 | sway_cmd input_cmd_map_from_region; |
@@ -260,10 +261,12 @@ sway_cmd input_cmd_map_to_region; | |||
260 | sway_cmd input_cmd_middle_emulation; | 261 | sway_cmd input_cmd_middle_emulation; |
261 | sway_cmd input_cmd_natural_scroll; | 262 | sway_cmd input_cmd_natural_scroll; |
262 | sway_cmd input_cmd_pointer_accel; | 263 | sway_cmd input_cmd_pointer_accel; |
264 | sway_cmd input_cmd_rotation_angle; | ||
263 | sway_cmd input_cmd_scroll_factor; | 265 | sway_cmd input_cmd_scroll_factor; |
264 | sway_cmd input_cmd_repeat_delay; | 266 | sway_cmd input_cmd_repeat_delay; |
265 | sway_cmd input_cmd_repeat_rate; | 267 | sway_cmd input_cmd_repeat_rate; |
266 | sway_cmd input_cmd_scroll_button; | 268 | sway_cmd input_cmd_scroll_button; |
269 | sway_cmd input_cmd_scroll_button_lock; | ||
267 | sway_cmd input_cmd_scroll_method; | 270 | sway_cmd input_cmd_scroll_method; |
268 | sway_cmd input_cmd_tap; | 271 | sway_cmd input_cmd_tap; |
269 | sway_cmd input_cmd_tap_button_map; | 272 | sway_cmd input_cmd_tap_button_map; |
@@ -294,6 +297,7 @@ sway_cmd output_cmd_scale_filter; | |||
294 | sway_cmd output_cmd_subpixel; | 297 | sway_cmd output_cmd_subpixel; |
295 | sway_cmd output_cmd_toggle; | 298 | sway_cmd output_cmd_toggle; |
296 | sway_cmd output_cmd_transform; | 299 | sway_cmd output_cmd_transform; |
300 | sway_cmd output_cmd_unplug; | ||
297 | 301 | ||
298 | sway_cmd seat_cmd_attach; | 302 | sway_cmd seat_cmd_attach; |
299 | sway_cmd seat_cmd_cursor; | 303 | sway_cmd seat_cmd_cursor; |