Keysym: Add apallingly bad API documentation for keysym <-> string
authorDaniel Stone <daniel@fooishbar.org>
Sat, 25 Apr 2009 04:55:59 +0000 (14:55 +1000)
committerDaniel Stone <daniel@fooishbar.org>
Tue, 22 Jun 2010 14:56:55 +0000 (15:56 +0100)
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
include/X11/extensions/XKBcommon.h

index 123ea8c..bb7bec3 100644 (file)
@@ -141,9 +141,21 @@ XkbcCompileKeymapFromFile(FILE *inputFile, const char *mapName);
 extern XkbComponentListPtr
 XkbcListComponents(XkbComponentNamesPtr ptrns, int *maxMatch);
 
+/*
+ * Converts a keysym to a string; will return unknown Unicode codepoints
+ * as "Ua1b2", and other unknown keysyms as "0xabcd1234".
+ *
+ * The string returned may become invalidated after the next call to
+ * XkbcKeysymToString: if you need to preserve it, then you must
+ * duplicate it.
+ */
 extern char *
 XkbcKeysymToString(KeySym ks);
 
+/*
+ * See XkbcKeysymToString comments: this function will accept any string
+ * from that function.
+ */
 extern KeySym
 XkbcStringToKeysym(const char *s);