diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-03-10 09:30:02 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-03-17 10:53:22 +1000 |
commit | ee3a4951a49312a2b68025db00c71472eb84293f (patch) | |
tree | 9f04a92c447ccad2c18427a72e6b864e0ec19a75 /xkb/xkb.c | |
parent | 5c47f8beac7f87680c6f7331483b9cf94a1dbc86 (diff) |
xkb: Document XkbWriteCountedString.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'xkb/xkb.c')
-rw-r--r-- | xkb/xkb.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -4307,6 +4307,17 @@ ProcXkbSetNames(ClientPtr client) #define XkbSizeCountedString(s) ((s)?((((2+strlen(s))+3)/4)*4):4) +/** + * Write the zero-terminated string str into wire as a pascal string with a + * 16-bit length field prefixed before the actual string. + * + * @param wire The destination array, usually the wire struct + * @param str The source string as zero-terminated C string + * @param swap If TRUE, the length field is swapped. + * + * @return The input string in the format <string length><string> with a + * (swapped) 16 bit string length, non-zero terminated. + */ static char * XkbWriteCountedString(char *wire,char *str,Bool swap) { |