summaryrefslogtreecommitdiff
path: root/src/evdev.h
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2012-05-16 18:45:18 +0100
committerKristian Høgsberg <krh@bitplanet.net>2012-05-16 15:29:06 -0400
commit37816df64641a9b8bb922e938f902adc2374de2e (patch)
treeca57380d1aeb7c9f13b4bd4cd743e8869d2db1a7 /src/evdev.h
parentdc549932b734967b6ea7bb9a9d3467440e105739 (diff)
downloadweston-37816df64641a9b8bb922e938f902adc2374de2e.tar.gz
weston-37816df64641a9b8bb922e938f902adc2374de2e.tar.bz2
weston-37816df64641a9b8bb922e938f902adc2374de2e.zip
Convert wl_input_device to wl_seat (and friends)
wl_input_device has been both renamed and split. wl_seat is now a virtual object representing a group of logically related input devices with related focus. It now only generates one event: to let clients know that it has new capabilities. It takes requests which hand back objects for the wl_pointer, wl_keyboard and wl_touch interfaces it exposes which all provide the old input interface, just under different names. This commit tracks these changes in weston and the clients, as well as similar renames (e.g. weston_input_device -> weston_seat). Some other changes were necessary, e.g. renaming the name for the visible mouse sprite from 'pointer' to 'cursor' so as to not conflict. For simplicity, every seat is always exposed with all three interfaces, although this will change as time goes on. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'src/evdev.h')
-rw-r--r--src/evdev.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/evdev.h b/src/evdev.h
index b05c855c..8e3214dd 100644
--- a/src/evdev.h
+++ b/src/evdev.h
@@ -23,21 +23,20 @@
#include <libudev.h>
void
-evdev_add_devices(struct udev *udev, struct weston_input_device
- *input_base);
+evdev_add_devices(struct udev *udev, struct weston_seat *seat_base);
void
-evdev_remove_devices(struct weston_input_device *input_base);
+evdev_remove_devices(struct weston_seat *seat_base);
void
evdev_input_create(struct weston_compositor *c, struct udev *udev,
const char *seat);
void
-evdev_input_destroy(struct weston_input_device *input_base);
+evdev_input_destroy(struct weston_seat *seat);
int
-evdev_enable_udev_monitor(struct udev *udev, struct weston_input_device *input_base);
+evdev_enable_udev_monitor(struct udev *udev, struct weston_seat *seat_base);
void
-evdev_disable_udev_monitor(struct weston_input_device *input_base);
+evdev_disable_udev_monitor(struct weston_seat *seat_base);