projects
/
platform
/
upstream
/
libxkbcommon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use xkb_contexts in keymap compilation
[platform/upstream/libxkbcommon.git]
/
test
/
state.c
diff --git
a/test/state.c
b/test/state.c
index
5c6d1f5
..
231a8c0
100644
(file)
--- a/
test/state.c
+++ b/
test/state.c
@@
-205,8
+205,9
@@
test_serialisation(struct xkb_desc *xkb)
int
main(int argc, char *argv[])
{
int
main(int argc, char *argv[])
{
- struct xkb_
rule_names rmlvo
;
+ struct xkb_
context *context
;
struct xkb_desc *xkb;
struct xkb_desc *xkb;
+ struct xkb_rule_names rmlvo;
rmlvo.rules = "evdev";
rmlvo.model = "pc104";
rmlvo.rules = "evdev";
rmlvo.model = "pc104";
@@
-214,11
+215,15
@@
main(int argc, char *argv[])
rmlvo.variant = NULL;
rmlvo.options = NULL;
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);
assert(xkb);
test_update_key(xkb);
test_serialisation(xkb);
xkb_map_unref(xkb);
+ xkb_context_unref(context);
}
}