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.h14
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
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 */
@@ -159,12 +160,11 @@ sway_cmd cmd_new_float;
159sway_cmd cmd_new_window; 160sway_cmd cmd_new_window;
160sway_cmd cmd_nop; 161sway_cmd cmd_nop;
161sway_cmd cmd_opacity; 162sway_cmd cmd_opacity;
162sway_cmd cmd_new_float;
163sway_cmd cmd_new_window;
164sway_cmd cmd_no_focus; 163sway_cmd cmd_no_focus;
165sway_cmd cmd_output; 164sway_cmd cmd_output;
166sway_cmd cmd_permit; 165sway_cmd cmd_permit;
167sway_cmd cmd_popup_during_fullscreen; 166sway_cmd cmd_popup_during_fullscreen;
167sway_cmd cmd_primary_selection;
168sway_cmd cmd_reject; 168sway_cmd cmd_reject;
169sway_cmd cmd_reload; 169sway_cmd cmd_reload;
170sway_cmd cmd_rename; 170sway_cmd cmd_rename;
@@ -252,6 +252,7 @@ sway_cmd input_cmd_click_method;
252sway_cmd input_cmd_drag; 252sway_cmd input_cmd_drag;
253sway_cmd input_cmd_drag_lock; 253sway_cmd input_cmd_drag_lock;
254sway_cmd input_cmd_dwt; 254sway_cmd input_cmd_dwt;
255sway_cmd input_cmd_dwtp;
255sway_cmd input_cmd_events; 256sway_cmd input_cmd_events;
256sway_cmd input_cmd_left_handed; 257sway_cmd input_cmd_left_handed;
257sway_cmd input_cmd_map_from_region; 258sway_cmd input_cmd_map_from_region;
@@ -260,10 +261,12 @@ sway_cmd input_cmd_map_to_region;
260sway_cmd input_cmd_middle_emulation; 261sway_cmd input_cmd_middle_emulation;
261sway_cmd input_cmd_natural_scroll; 262sway_cmd input_cmd_natural_scroll;
262sway_cmd input_cmd_pointer_accel; 263sway_cmd input_cmd_pointer_accel;
264sway_cmd input_cmd_rotation_angle;
263sway_cmd input_cmd_scroll_factor; 265sway_cmd input_cmd_scroll_factor;
264sway_cmd input_cmd_repeat_delay; 266sway_cmd input_cmd_repeat_delay;
265sway_cmd input_cmd_repeat_rate; 267sway_cmd input_cmd_repeat_rate;
266sway_cmd input_cmd_scroll_button; 268sway_cmd input_cmd_scroll_button;
269sway_cmd input_cmd_scroll_button_lock;
267sway_cmd input_cmd_scroll_method; 270sway_cmd input_cmd_scroll_method;
268sway_cmd input_cmd_tap; 271sway_cmd input_cmd_tap;
269sway_cmd input_cmd_tap_button_map; 272sway_cmd input_cmd_tap_button_map;
@@ -294,6 +297,7 @@ sway_cmd output_cmd_scale_filter;
294sway_cmd output_cmd_subpixel; 297sway_cmd output_cmd_subpixel;
295sway_cmd output_cmd_toggle; 298sway_cmd output_cmd_toggle;
296sway_cmd output_cmd_transform; 299sway_cmd output_cmd_transform;
300sway_cmd output_cmd_unplug;
297 301
298sway_cmd seat_cmd_attach; 302sway_cmd seat_cmd_attach;
299sway_cmd seat_cmd_cursor; 303sway_cmd seat_cmd_cursor;