diff options
author | 2016-01-08 09:48:24 -0500 | |
---|---|---|
committer | 2016-01-08 09:48:24 -0500 | |
commit | e2d49afb4a9cf1c333cbb1e18360026508b79a60 (patch) | |
tree | 37391772505203dd0ac0b533e89359b0d5d6e040 /include | |
parent | Merge pull request #439 from mikkeloscar/bindsym-release (diff) | |
parent | Make IPC binding event support a compile time opt. (diff) | |
download | sway-e2d49afb4a9cf1c333cbb1e18360026508b79a60.tar.gz sway-e2d49afb4a9cf1c333cbb1e18360026508b79a60.tar.zst sway-e2d49afb4a9cf1c333cbb1e18360026508b79a60.zip |
Merge pull request #438 from mikkeloscar/binding-event
Implement IPC binding event (keyboard)
Diffstat (limited to 'include')
-rw-r--r-- | include/config.h | 1 | ||||
-rw-r--r-- | include/ipc-server.h | 4 | ||||
-rw-r--r-- | include/util.h | 7 |
3 files changed, 12 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index 8220f804..1f2bbdd0 100644 --- a/include/config.h +++ b/include/config.h | |||
@@ -189,6 +189,7 @@ int sway_binding_cmp(const void *a, const void *b); | |||
189 | int sway_binding_cmp_qsort(const void *a, const void *b); | 189 | int sway_binding_cmp_qsort(const void *a, const void *b); |
190 | int sway_binding_cmp_keys(const void *a, const void *b); | 190 | int sway_binding_cmp_keys(const void *a, const void *b); |
191 | void free_sway_binding(struct sway_binding *sb); | 191 | void free_sway_binding(struct sway_binding *sb); |
192 | struct sway_binding *sway_binding_dup(struct sway_binding *sb); | ||
192 | 193 | ||
193 | int sway_mouse_binding_cmp(const void *a, const void *b); | 194 | int sway_mouse_binding_cmp(const void *a, const void *b); |
194 | int sway_mouse_binding_cmp_qsort(const void *a, const void *b); | 195 | int sway_mouse_binding_cmp_qsort(const void *a, const void *b); |
diff --git a/include/ipc-server.h b/include/ipc-server.h index 47026bfd..96b7902f 100644 --- a/include/ipc-server.h +++ b/include/ipc-server.h | |||
@@ -21,6 +21,10 @@ void ipc_event_mode(const char *mode); | |||
21 | * the name of that modifier. | 21 | * the name of that modifier. |
22 | */ | 22 | */ |
23 | void ipc_event_modifier(uint32_t modifier, const char *state); | 23 | void ipc_event_modifier(uint32_t modifier, const char *state); |
24 | /** | ||
25 | * Send IPC keyboard binding event. | ||
26 | */ | ||
27 | void ipc_event_binding_keyboard(struct sway_binding *sb); | ||
24 | const char *swayc_type_string(enum swayc_types type); | 28 | const char *swayc_type_string(enum swayc_types type); |
25 | 29 | ||
26 | #endif | 30 | #endif |
diff --git a/include/util.h b/include/util.h index 4bbb64c8..dc47e343 100644 --- a/include/util.h +++ b/include/util.h | |||
@@ -29,4 +29,11 @@ uint32_t get_modifier_mask_by_name(const char *name); | |||
29 | */ | 29 | */ |
30 | const char *get_modifier_name_by_mask(uint32_t modifier); | 30 | const char *get_modifier_name_by_mask(uint32_t modifier); |
31 | 31 | ||
32 | /** | ||
33 | * Get an array of modifier names from modifier_masks | ||
34 | * | ||
35 | * Populates the names array and return the number of names added. | ||
36 | */ | ||
37 | int get_modifier_names(const char **names, uint32_t modifier_masks); | ||
38 | |||
32 | #endif | 39 | #endif |