summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2012-04-08 02:08:37 +0300
committerDaniel Stone <daniel@fooishbar.org>2012-04-09 14:16:17 +0100
commit1b9635dfb51f78783d6c11d10773b998236d4ce8 (patch)
tree8b6bcc8580df401c9bb5f6fc0dfef213be18a87a /include
parent8fbd44fde6c54e5f646e619e51a6e846e3c6f95b (diff)
downloadxorg-lib-libxkbcommon-1b9635dfb51f78783d6c11d10773b998236d4ce8.tar.gz
Add xkb_state_get_map()
This is very useful because it avoids redundent pointers in structs and/or parameter passing in the application. Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/xkbcommon/xkbcommon.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/xkbcommon/xkbcommon.h b/include/xkbcommon/xkbcommon.h
index 185d11b..4eeaaca 100644
--- a/include/xkbcommon/xkbcommon.h
+++ b/include/xkbcommon/xkbcommon.h
@@ -423,6 +423,12 @@ xkb_state_ref(struct xkb_state *state);
void
xkb_state_unref(struct xkb_state *state);
+/**
+ * Get the keymap from which the state object was created.
+ */
+struct xkb_keymap *
+xkb_state_get_map(struct xkb_state *state);
+
enum xkb_key_direction {
XKB_KEY_UP,
XKB_KEY_DOWN,