void
weston_seat_release(struct weston_seat *seat);
int
-weston_compositor_xkb_init(struct weston_compositor *ec,
- struct xkb_rule_names *names);
+weston_compositor_set_xkb_rule_names(struct weston_compositor *ec,
+ struct xkb_rule_names *names);
void
weston_compositor_xkb_destroy(struct weston_compositor *ec);
}
#ifdef ENABLE_XKBCOMMON
-int
-weston_compositor_xkb_init(struct weston_compositor *ec,
- struct xkb_rule_names *names)
+WL_EXPORT int
+weston_compositor_set_xkb_rule_names(struct weston_compositor *ec,
+ struct xkb_rule_names *names)
{
ec->use_xkbcommon = 1;
return 0;
}
#else
-int
-weston_compositor_xkb_init(struct weston_compositor *ec,
- struct xkb_rule_names *names)
+WL_EXPORT int
+weston_compositor_set_xkb_rule_names(struct weston_compositor *ec,
+ struct xkb_rule_names *names)
{
return 0;
}
weston_config_section_get_string(s, "keymap_options",
(char **) &xkb_names.options, NULL);
- if (weston_compositor_xkb_init(ec, &xkb_names) < 0)
+ if (weston_compositor_set_xkb_rule_names(ec, &xkb_names) < 0)
return -1;
weston_config_section_get_int(s, "repeat-rate",