#ifndef _UDEV_SEAT_H_
#define _UDEV_SEAT_H_
-#include <libudev.h>
+#include "config.h"
-#include "compositor.h"
+#include <libudev.h>
+#include "libinput-private.h"
struct udev_seat {
- struct weston_seat base;
- struct wl_list devices_list;
+ struct libinput_seat base;
};
struct udev_input {
+ struct libinput base;
+ struct udev *udev;
struct udev_monitor *udev_monitor;
- struct wl_event_source *udev_monitor_source;
+ struct libinput_source *udev_monitor_source;
char *seat_id;
- struct weston_compositor *compositor;
};
-
-int udev_input_enable(struct udev_input *input, struct udev *udev);
-void udev_input_disable(struct udev_input *input);
-int udev_input_init(struct udev_input *input,
- struct weston_compositor *c,
- struct udev *udev,
- const char *seat_id);
-void udev_input_destroy(struct udev_input *input);
-
#endif