From ebd397e184a9f0b6127d37fed96e75ed32be8ae1 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Fri, 25 May 2012 17:05:39 +0100 Subject: Add xkb_map_get_as_string Returns a newly-allocated string representing the specified keymap. Signed-off-by: Daniel Stone --- include/xkbcommon/xkbcommon.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') 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 @@ -278,6 +278,13 @@ xkb_map_new_from_string(struct xkb_context *context, enum xkb_keymap_format format, 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. */ -- cgit v1.2.1