if (strcmp(s, "") != 0) {
struct udev_seat *seat;
- seat = udev_seat_get_named(&ec->base, s);
+ seat = udev_seat_get_named(&ec->input, s);
if (seat)
seat->base.output = output;
static const char default_seat[] = "seat0";
static const char default_seat_name[] = "default";
-static struct udev_seat *
-udev_seat_create(struct weston_compositor *c, const char *seat_name);
static void
udev_seat_destroy(struct udev_seat *seat);
if (!seat_name)
seat_name = default_seat_name;
- seat = udev_seat_get_named(c, seat_name);
+ seat = udev_seat_get_named(input, seat_name);
if (seat == NULL)
return -1;
}
static struct udev_seat *
-udev_seat_create(struct weston_compositor *c, const char *seat_name)
+udev_seat_create(struct udev_input *input, const char *seat_name)
{
+ struct weston_compositor *c = input->compositor;
struct udev_seat *seat;
seat = zalloc(sizeof *seat);
}
struct udev_seat *
-udev_seat_get_named(struct weston_compositor *c, const char *seat_name)
+udev_seat_get_named(struct udev_input *input, const char *seat_name)
{
+ struct weston_compositor *c = input->compositor;
struct udev_seat *seat;
wl_list_for_each(seat, &c->seat_list, base.link) {
return seat;
}
- seat = udev_seat_create(c, seat_name);
+ seat = udev_seat_create(input, seat_name);
if (!seat)
return NULL;
const char *seat_id);
void udev_input_destroy(struct udev_input *input);
-struct udev_seat *udev_seat_get_named(struct weston_compositor *c,
+struct udev_seat *udev_seat_get_named(struct udev_input *input,
const char *seat_name);
#endif