diff options
Diffstat (limited to 'include/sway/commands.h')
-rw-r--r-- | include/sway/commands.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h index 2746ef28..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 | */ |
@@ -106,6 +107,7 @@ sway_cmd cmd_exec_process; | |||
106 | sway_cmd cmd_assign; | 107 | sway_cmd cmd_assign; |
107 | sway_cmd cmd_bar; | 108 | sway_cmd cmd_bar; |
108 | sway_cmd cmd_bindcode; | 109 | sway_cmd cmd_bindcode; |
110 | sway_cmd cmd_bindgesture; | ||
109 | sway_cmd cmd_bindswitch; | 111 | sway_cmd cmd_bindswitch; |
110 | sway_cmd cmd_bindsym; | 112 | sway_cmd cmd_bindsym; |
111 | sway_cmd cmd_border; | 113 | sway_cmd cmd_border; |
@@ -158,12 +160,11 @@ sway_cmd cmd_new_float; | |||
158 | sway_cmd cmd_new_window; | 160 | sway_cmd cmd_new_window; |
159 | sway_cmd cmd_nop; | 161 | sway_cmd cmd_nop; |
160 | sway_cmd cmd_opacity; | 162 | sway_cmd cmd_opacity; |
161 | sway_cmd cmd_new_float; | ||
162 | sway_cmd cmd_new_window; | ||
163 | sway_cmd cmd_no_focus; | 163 | sway_cmd cmd_no_focus; |
164 | sway_cmd cmd_output; | 164 | sway_cmd cmd_output; |
165 | sway_cmd cmd_permit; | 165 | sway_cmd cmd_permit; |
166 | sway_cmd cmd_popup_during_fullscreen; | 166 | sway_cmd cmd_popup_during_fullscreen; |
167 | sway_cmd cmd_primary_selection; | ||
167 | sway_cmd cmd_reject; | 168 | sway_cmd cmd_reject; |
168 | sway_cmd cmd_reload; | 169 | sway_cmd cmd_reload; |
169 | sway_cmd cmd_rename; | 170 | sway_cmd cmd_rename; |
@@ -191,6 +192,7 @@ sway_cmd cmd_titlebar_border_thickness; | |||
191 | sway_cmd cmd_titlebar_padding; | 192 | sway_cmd cmd_titlebar_padding; |
192 | sway_cmd cmd_unbindcode; | 193 | sway_cmd cmd_unbindcode; |
193 | sway_cmd cmd_unbindswitch; | 194 | sway_cmd cmd_unbindswitch; |
195 | sway_cmd cmd_unbindgesture; | ||
194 | sway_cmd cmd_unbindsym; | 196 | sway_cmd cmd_unbindsym; |
195 | sway_cmd cmd_unmark; | 197 | sway_cmd cmd_unmark; |
196 | sway_cmd cmd_urgent; | 198 | sway_cmd cmd_urgent; |
@@ -250,6 +252,7 @@ sway_cmd input_cmd_click_method; | |||
250 | sway_cmd input_cmd_drag; | 252 | sway_cmd input_cmd_drag; |
251 | sway_cmd input_cmd_drag_lock; | 253 | sway_cmd input_cmd_drag_lock; |
252 | sway_cmd input_cmd_dwt; | 254 | sway_cmd input_cmd_dwt; |
255 | sway_cmd input_cmd_dwtp; | ||
253 | sway_cmd input_cmd_events; | 256 | sway_cmd input_cmd_events; |
254 | sway_cmd input_cmd_left_handed; | 257 | sway_cmd input_cmd_left_handed; |
255 | sway_cmd input_cmd_map_from_region; | 258 | sway_cmd input_cmd_map_from_region; |
@@ -258,10 +261,12 @@ sway_cmd input_cmd_map_to_region; | |||
258 | sway_cmd input_cmd_middle_emulation; | 261 | sway_cmd input_cmd_middle_emulation; |
259 | sway_cmd input_cmd_natural_scroll; | 262 | sway_cmd input_cmd_natural_scroll; |
260 | sway_cmd input_cmd_pointer_accel; | 263 | sway_cmd input_cmd_pointer_accel; |
264 | sway_cmd input_cmd_rotation_angle; | ||
261 | sway_cmd input_cmd_scroll_factor; | 265 | sway_cmd input_cmd_scroll_factor; |
262 | sway_cmd input_cmd_repeat_delay; | 266 | sway_cmd input_cmd_repeat_delay; |
263 | sway_cmd input_cmd_repeat_rate; | 267 | sway_cmd input_cmd_repeat_rate; |
264 | sway_cmd input_cmd_scroll_button; | 268 | sway_cmd input_cmd_scroll_button; |
269 | sway_cmd input_cmd_scroll_button_lock; | ||
265 | sway_cmd input_cmd_scroll_method; | 270 | sway_cmd input_cmd_scroll_method; |
266 | sway_cmd input_cmd_tap; | 271 | sway_cmd input_cmd_tap; |
267 | sway_cmd input_cmd_tap_button_map; | 272 | sway_cmd input_cmd_tap_button_map; |
@@ -285,12 +290,14 @@ sway_cmd output_cmd_max_render_time; | |||
285 | sway_cmd output_cmd_mode; | 290 | sway_cmd output_cmd_mode; |
286 | sway_cmd output_cmd_modeline; | 291 | sway_cmd output_cmd_modeline; |
287 | sway_cmd output_cmd_position; | 292 | sway_cmd output_cmd_position; |
293 | sway_cmd output_cmd_power; | ||
288 | sway_cmd output_cmd_render_bit_depth; | 294 | sway_cmd output_cmd_render_bit_depth; |
289 | sway_cmd output_cmd_scale; | 295 | sway_cmd output_cmd_scale; |
290 | sway_cmd output_cmd_scale_filter; | 296 | sway_cmd output_cmd_scale_filter; |
291 | sway_cmd output_cmd_subpixel; | 297 | sway_cmd output_cmd_subpixel; |
292 | sway_cmd output_cmd_toggle; | 298 | sway_cmd output_cmd_toggle; |
293 | sway_cmd output_cmd_transform; | 299 | sway_cmd output_cmd_transform; |
300 | sway_cmd output_cmd_unplug; | ||
294 | 301 | ||
295 | sway_cmd seat_cmd_attach; | 302 | sway_cmd seat_cmd_attach; |
296 | sway_cmd seat_cmd_cursor; | 303 | sway_cmd seat_cmd_cursor; |