aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-kkbd.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-07-19 08:12:33 +0200
committerMattias Andrée <maandree@operamail.com>2015-07-19 08:12:33 +0200
commit8e33f26445860b48471d3f8694d6e0da4753df29 (patch)
treefddfc96a2c4fe5686c09269efc6ad8f71f31f30c /src/mds-kkbd.h
parentinfo: add protocol map-keyboard-leds (diff)
downloadmds-8e33f26445860b48471d3f8694d6e0da4753df29.tar.gz
mds-8e33f26445860b48471d3f8694d6e0da4753df29.tar.bz2
mds-8e33f26445860b48471d3f8694d6e0da4753df29.tar.xz
mds-kkbd m fix + add LED remapping
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/mds-kkbd.h19
1 files changed, 19 insertions, 0 deletions
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
@@ -84,6 +84,15 @@ int handle_get_keyboard_leds(const char* recv_client_id, const char* recv_messag
/**
* 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`
*
* @param recv_client_id The value of the `Client ID`-header, "0:0" if omitted
@@ -96,6 +105,16 @@ 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
*
* @param message The message to send