aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-kkbd.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/mds-kkbd.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mds-kkbd.h b/src/mds-kkbd.h
index a7559e4..60e936a 100644
--- a/src/mds-kkbd.h
+++ b/src/mds-kkbd.h
@@ -83,6 +83,16 @@ int handle_get_keyboard_leds(const char* recv_client_id, const char* recv_messag
const char* recv_keyboard);
/**
+ * Handle the received message after it has been
+ * identified to contain `Command: keycode-map`
+ *
+ * @param recv_action The value of the `Action`-header, `NULL` if omitted
+ * @param recv_keyboard The value of the `Keyboard`-header, `NULL` if omitted
+ * @return Zero on success, -1 on error
+ */
+int handle_keycode_map(const char* recv_action, const char* recv_keyboard);
+
+/**
* Send a full message even if interrupted
*
* @param message The message to send
@@ -156,6 +166,11 @@ int fetch_keys(void);
*/
int send_errno(int error, const char* recv_client_id, const char* recv_message_id);
+/**
+ * Attempt to shrink `mapping`
+ */
+void shrink_map(void);
+
#endif