summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2012-07-11 18:00:31 +0300
committerDaniel Stone <daniel@fooishbar.org>2012-07-12 09:42:20 +0100
commit1f492901314baae0172c19414fac6829089f97a4 (patch)
tree1e105e53478b4c46f7015f93eedf53ea21de95e6 /include
parent010242593e63a6b6d763de1b446097cccf876ad8 (diff)
downloadxorg-lib-libxkbcommon-1f492901314baae0172c19414fac6829089f97a4.tar.gz
Enlarge keysym name buffers and mention in comment
The longest keysym is 27 chars long. Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/xkbcommon/xkbcommon.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/xkbcommon/xkbcommon.h b/include/xkbcommon/xkbcommon.h
index 31d0dcf..14d5045 100644
--- a/include/xkbcommon/xkbcommon.h
+++ b/include/xkbcommon/xkbcommon.h
@@ -140,12 +140,14 @@ extern "C" {
/*
* Returns the name for a keysym as a string; will return unknown Unicode
* codepoints as "Ua1b2", and other unknown keysyms as "0xabcd1234".
+ * If the buffer passed is too small, the string is truncated; a size of
+ * at least 32 bytes is recommended.
*/
void
xkb_keysym_get_name(xkb_keysym_t ks, char *buffer, size_t size);
/*
- * See xkb_keysym_to_string comments: this function will accept any string
+ * See xkb_keysym_get_name comments: this function will accept any string
* from that function.
*/
xkb_keysym_t