diff options
author | Daniel Stone <daniel@fooishbar.org> | 2012-05-25 17:05:39 +0100 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2012-05-29 15:07:18 +0100 |
commit | ebd397e184a9f0b6127d37fed96e75ed32be8ae1 (patch) | |
tree | bfb5f79e20cf24a30d2bf0c3afaa6b80a8517242 /include | |
parent | 208d957806f5555809c1e511a587211d50c13b70 (diff) | |
download | xorg-lib-libxkbcommon-ebd397e184a9f0b6127d37fed96e75ed32be8ae1.tar.gz |
Add xkb_map_get_as_string
Returns a newly-allocated string representing the specified keymap.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/xkbcommon/xkbcommon.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/xkbcommon/xkbcommon.h b/include/xkbcommon/xkbcommon.h index e2786fe..fb23425 100644 --- a/include/xkbcommon/xkbcommon.h +++ b/include/xkbcommon/xkbcommon.h @@ -279,6 +279,13 @@ xkb_map_new_from_string(struct xkb_context *context, enum xkb_map_compile_flags flags); /** + * Returns the compiled XKB map as a string which can later be fed back into + * xkb_map_new_from_string to return the exact same keymap. + */ +char * +xkb_map_get_as_string(struct xkb_keymap *keymap); + +/** * Takes a new reference on a keymap. */ struct xkb_keymap * |