From 8e33f26445860b48471d3f8694d6e0da4753df29 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 19 Jul 2015 08:12:33 +0200 Subject: mds-kkbd m fix + add LED remapping 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 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/mds-kkbd.h') diff --git a/src/mds-kkbd.h b/src/mds-kkbd.h index c799fc1..24f058e 100644 --- a/src/mds-kkbd.h +++ b/src/mds-kkbd.h @@ -82,6 +82,15 @@ 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: map-keyboard-leds` + * + * @param recv_keyboard The value of the `Keyboard`-header, `NULL` if omitted + * @return Zero on success, -1 on error + */ +int handle_map_keyboard_leds(const char* recv_keyboard); + /** * Handle the received message after it has been * identified to contain `Command: keycode-map` @@ -95,6 +104,16 @@ int handle_get_keyboard_leds(const char* recv_client_id, const char* recv_messag int handle_keycode_map(const char* recv_client_id, const char* recv_message_id, const char* recv_action, const char* recv_keyboard); +/** + * Remap a LED, from the command line + * + * @param arg The name of the LED to remap, the new position of the LED, + * either zero-based index or name of the original LED with + * that position; delimited by an equals-sign + * @return Zero on success, -1 on error + */ +int remap_led_cmdline(char* arg); + /** * Send a full message even if interrupted * -- cgit v1.2.3-70-g09d2