From 050a26358b3500250e4d82267bdf65b200787ebb Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 13 Aug 2014 18:41:42 +0200 Subject: implement protocol for remapping the keyboard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-kkbd.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/mds-kkbd.h') 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 @@ -82,6 +82,16 @@ int handle_set_keyboard_leds(const char* recv_active, const char* recv_mask, int handle_get_keyboard_leds(const char* recv_client_id, const char* recv_message_id, 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 * @@ -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 -- cgit v1.2.3-70-g09d2