summaryrefslogtreecommitdiff
path: root/test/state.c
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2012-03-22 17:39:12 +0000
committerDaniel Stone <daniel@fooishbar.org>2012-03-22 17:39:12 +0000
commitd039622a659b40d014f146fcd2ff2353cd5b1bc7 (patch)
treea089a706ddcfc80b1795605bb4737289eb7e82e4 /test/state.c
parent3d672fcfea6b823db4793b9ad1c3aadc4b547a08 (diff)
downloadxorg-lib-libxkbcommon-d039622a659b40d014f146fcd2ff2353cd5b1bc7.tar.gz
Rename keymap allocation API
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'test/state.c')
-rw-r--r--test/state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/state.c b/test/state.c
index eea5b59..c320440 100644
--- a/test/state.c
+++ b/test/state.c
@@ -104,7 +104,7 @@ main(int argc, char *argv[])
rmlvo.variant = NULL;
rmlvo.options = NULL;
- xkb = xkb_compile_keymap_from_rules(&rmlvo);
+ xkb = xkb_map_new_from_names(&rmlvo);
if (!xkb) {
fprintf(stderr, "Failed to compile keymap\n");
@@ -164,7 +164,7 @@ main(int argc, char *argv[])
assert(num_syms == 1 && syms[0] == XK_q);
xkb_state_unref(state);
- xkb_free_keymap(xkb);
+ xkb_map_unref(xkb);
return 0;
}