aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/commands.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sway/commands.h')
-rw-r--r--include/sway/commands.h17
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
7struct sway_container; 8struct sway_container;
8 9
9typedef struct cmd_results *sway_cmd(int argc, char **argv); 10typedef struct cmd_results *sway_cmd(int argc, char **argv);
10 11
11struct cmd_handler { 12struct 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 {
46struct cmd_results *checkarg(int argc, const char *name, 47struct cmd_results *checkarg(int argc, const char *name,
47 enum expected_args type, int val); 48 enum expected_args type, int val);
48 49
49const struct cmd_handler *find_handler(char *line, 50const 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 */
79struct cmd_results *cmd_results_new(enum cmd_status status, const char *error, ...); 80struct 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;
106sway_cmd cmd_assign; 107sway_cmd cmd_assign;
107sway_cmd cmd_bar; 108sway_cmd cmd_bar;
108sway_cmd cmd_bindcode; 109sway_cmd cmd_bindcode;
110sway_cmd cmd_bindgesture;
109sway_cmd cmd_bindswitch; 111sway_cmd cmd_bindswitch;
110sway_cmd cmd_bindsym; 112sway_cmd cmd_bindsym;
111sway_cmd cmd_border; 113sway_cmd cmd_border;
@@ -158,12 +160,11 @@ sway_cmd cmd_new_float;
158sway_cmd cmd_new_window; 160sway_cmd cmd_new_window;
159sway_cmd cmd_nop; 161sway_cmd cmd_nop;
160sway_cmd cmd_opacity; 162sway_cmd cmd_opacity;
161sway_cmd cmd_new_float;
162sway_cmd cmd_new_window;
163sway_cmd cmd_no_focus; 163sway_cmd cmd_no_focus;
164sway_cmd cmd_output; 164sway_cmd cmd_output;
165sway_cmd cmd_permit; 165sway_cmd cmd_permit;
166sway_cmd cmd_popup_during_fullscreen; 166sway_cmd cmd_popup_during_fullscreen;
167sway_cmd cmd_primary_selection;
167sway_cmd cmd_reject; 168sway_cmd cmd_reject;
168sway_cmd cmd_reload; 169sway_cmd cmd_reload;
169sway_cmd cmd_rename; 170sway_cmd cmd_rename;
@@ -191,6 +192,7 @@ sway_cmd cmd_titlebar_border_thickness;
191sway_cmd cmd_titlebar_padding; 192sway_cmd cmd_titlebar_padding;
192sway_cmd cmd_unbindcode; 193sway_cmd cmd_unbindcode;
193sway_cmd cmd_unbindswitch; 194sway_cmd cmd_unbindswitch;
195sway_cmd cmd_unbindgesture;
194sway_cmd cmd_unbindsym; 196sway_cmd cmd_unbindsym;
195sway_cmd cmd_unmark; 197sway_cmd cmd_unmark;
196sway_cmd cmd_urgent; 198sway_cmd cmd_urgent;
@@ -250,6 +252,7 @@ sway_cmd input_cmd_click_method;
250sway_cmd input_cmd_drag; 252sway_cmd input_cmd_drag;
251sway_cmd input_cmd_drag_lock; 253sway_cmd input_cmd_drag_lock;
252sway_cmd input_cmd_dwt; 254sway_cmd input_cmd_dwt;
255sway_cmd input_cmd_dwtp;
253sway_cmd input_cmd_events; 256sway_cmd input_cmd_events;
254sway_cmd input_cmd_left_handed; 257sway_cmd input_cmd_left_handed;
255sway_cmd input_cmd_map_from_region; 258sway_cmd input_cmd_map_from_region;
@@ -258,10 +261,12 @@ sway_cmd input_cmd_map_to_region;
258sway_cmd input_cmd_middle_emulation; 261sway_cmd input_cmd_middle_emulation;
259sway_cmd input_cmd_natural_scroll; 262sway_cmd input_cmd_natural_scroll;
260sway_cmd input_cmd_pointer_accel; 263sway_cmd input_cmd_pointer_accel;
264sway_cmd input_cmd_rotation_angle;
261sway_cmd input_cmd_scroll_factor; 265sway_cmd input_cmd_scroll_factor;
262sway_cmd input_cmd_repeat_delay; 266sway_cmd input_cmd_repeat_delay;
263sway_cmd input_cmd_repeat_rate; 267sway_cmd input_cmd_repeat_rate;
264sway_cmd input_cmd_scroll_button; 268sway_cmd input_cmd_scroll_button;
269sway_cmd input_cmd_scroll_button_lock;
265sway_cmd input_cmd_scroll_method; 270sway_cmd input_cmd_scroll_method;
266sway_cmd input_cmd_tap; 271sway_cmd input_cmd_tap;
267sway_cmd input_cmd_tap_button_map; 272sway_cmd input_cmd_tap_button_map;
@@ -285,12 +290,14 @@ sway_cmd output_cmd_max_render_time;
285sway_cmd output_cmd_mode; 290sway_cmd output_cmd_mode;
286sway_cmd output_cmd_modeline; 291sway_cmd output_cmd_modeline;
287sway_cmd output_cmd_position; 292sway_cmd output_cmd_position;
293sway_cmd output_cmd_power;
288sway_cmd output_cmd_render_bit_depth; 294sway_cmd output_cmd_render_bit_depth;
289sway_cmd output_cmd_scale; 295sway_cmd output_cmd_scale;
290sway_cmd output_cmd_scale_filter; 296sway_cmd output_cmd_scale_filter;
291sway_cmd output_cmd_subpixel; 297sway_cmd output_cmd_subpixel;
292sway_cmd output_cmd_toggle; 298sway_cmd output_cmd_toggle;
293sway_cmd output_cmd_transform; 299sway_cmd output_cmd_transform;
300sway_cmd output_cmd_unplug;
294 301
295sway_cmd seat_cmd_attach; 302sway_cmd seat_cmd_attach;
296sway_cmd seat_cmd_cursor; 303sway_cmd seat_cmd_cursor;