downstream: Multiseat support for drm/wayland backends
[profile/ivi/weston-ivi-shell.git] / src / libinput-seat.h
index c448da0..d2bc54e 100644 (file)
 
 #include "compositor.h"
 
-struct udev_seat {
-       struct weston_seat base;
-       struct wl_list devices_list;
-       struct wl_listener output_create_listener;
-};
-
 struct udev_input {
        struct libinput *libinput;
        struct wl_event_source *libinput_source;
@@ -43,6 +37,13 @@ struct udev_input {
        int suspended;
 };
 
+struct udev_seat {
+       struct weston_seat base;
+       struct udev_input input;
+       struct wl_list devices_list;
+       struct wl_listener output_create_listener;
+};
+
 int
 udev_input_enable(struct udev_input *input);
 void
@@ -56,7 +57,10 @@ void
 udev_input_destroy(struct udev_input *input);
 
 struct udev_seat *
-udev_seat_get_named(struct udev_input *u,
+udev_seat_get_named(struct weston_compositor *c,
                    const char *seat_name);
 
+int udev_seat_link_output(struct udev_seat *seat,
+                         struct weston_output *output);
+
 #endif