diff options
author | Daniel Stone <daniel@fooishbar.org> | 2012-03-27 17:22:35 +0100 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2012-03-27 17:22:35 +0100 |
commit | 034ffce66437592856497e605cb0943d5dbaf82c (patch) | |
tree | 7be39c70dde4000edbd33e654f614ba49b5687a8 /test/state.c | |
parent | 3e9dd7512c16dd752830d9fd56d9f4cba76ee7d3 (diff) | |
download | libxkbcommon-034ffce66437592856497e605cb0943d5dbaf82c.tar.gz libxkbcommon-034ffce66437592856497e605cb0943d5dbaf82c.tar.bz2 libxkbcommon-034ffce66437592856497e605cb0943d5dbaf82c.zip |
Use xkb_contexts in keymap compilation
Primarily for the include path, but also for the logging in future.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'test/state.c')
-rw-r--r-- | test/state.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/state.c b/test/state.c index 5c6d1f5..231a8c0 100644 --- a/test/state.c +++ b/test/state.c @@ -205,8 +205,9 @@ test_serialisation(struct xkb_desc *xkb) int main(int argc, char *argv[]) { - struct xkb_rule_names rmlvo; + struct xkb_context *context; struct xkb_desc *xkb; + struct xkb_rule_names rmlvo; rmlvo.rules = "evdev"; rmlvo.model = "pc104"; @@ -214,11 +215,15 @@ main(int argc, char *argv[]) rmlvo.variant = NULL; rmlvo.options = NULL; - xkb = xkb_map_new_from_names(&rmlvo); + context = xkb_context_new(); + assert(context); + + xkb = xkb_map_new_from_names(context, &rmlvo); assert(xkb); test_update_key(xkb); test_serialisation(xkb); xkb_map_unref(xkb); + xkb_context_unref(context); } |