diff options
author | Daniel Stone <daniel@fooishbar.org> | 2012-05-09 13:22:34 +0100 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2012-05-09 13:22:34 +0100 |
commit | e1af48bc04c4191cd3cf2cd457ee37c6b6ac7e10 (patch) | |
tree | e036ad91948ab091606770d1501beb7efecf2aa3 /include | |
parent | 124e62e48f22dad7eb87edbaf7ac6a539a1aab5f (diff) | |
download | xorg-lib-libxkbcommon-e1af48bc04c4191cd3cf2cd457ee37c6b6ac7e10.tar.gz |
Rename keysym <-> string API
Change them to refer to the string representation of the keysym's name
as a name rather than a string, since we want to add API to get the
Unicode printable representation as well.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/xkbcommon/xkbcommon.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/xkbcommon/xkbcommon.h b/include/xkbcommon/xkbcommon.h index dac14ec..315f590 100644 --- a/include/xkbcommon/xkbcommon.h +++ b/include/xkbcommon/xkbcommon.h @@ -172,18 +172,18 @@ xkb_canonicalise_components(struct xkb_component_names *names, const struct xkb_component_names *old); /* - * Converts a keysym to a string; will return unknown Unicode codepoints - * as "Ua1b2", and other unknown keysyms as "0xabcd1234". + * Returns the name for a keysym as a string; will return unknown Unicode + * codepoints as "Ua1b2", and other unknown keysyms as "0xabcd1234". */ void -xkb_keysym_to_string(xkb_keysym_t ks, char *buffer, size_t size); +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 * from that function. */ xkb_keysym_t -xkb_string_to_keysym(const char *s); +xkb_keysym_from_name(const char *s); /** * @defgroup ctx XKB contexts |