summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2012-03-24 13:27:48 +0200
committerDaniel Stone <daniel@fooishbar.org>2012-03-27 14:16:36 +0100
commit602e87805bdb829dfc0867b1466e2b1dc729ab52 (patch)
tree04d955125b823624cf29dd3701b3789e51438425 /include
parentd3908b631c531aa3721d91297badad1c85e3c4f1 (diff)
downloadxorg-lib-libxkbcommon-602e87805bdb829dfc0867b1466e2b1dc729ab52.tar.gz
Define our own NoSymbol value and use it
Since we have our own xkb_keysym_t type, it makes sense to have our own NoSymbol value instead of the one from X11/X.h. Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/xkbcommon/xkbcommon.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/xkbcommon/xkbcommon.h b/include/xkbcommon/xkbcommon.h
index 0679235..b823890 100644
--- a/include/xkbcommon/xkbcommon.h
+++ b/include/xkbcommon/xkbcommon.h
@@ -97,6 +97,8 @@ typedef uint32_t xkb_led_index_t;
#define XKB_KEYCODE_INVALID (0xffffffff)
#define XKB_LED_INVALID (0xffffffff)
+#define XKB_KEYSYM_NO_SYMBOL 0
+
#define XKB_KEYCODE_MAX (0xffffffff - 1)
#define xkb_keycode_is_legal_ext(kc) (kc <= XKB_KEYCODE_MAX)
#define xkb_keycode_is_legal_x11(kc) (kc <= XKB_KEYCODE_MAX)