From 5df56653abdef714d0a92ff88b13b9066f3167fc Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Sun, 4 Jun 2017 17:43:34 +1200 Subject: Changed invalidate interface. --- include/backend/udev.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/backend/udev.h b/include/backend/udev.h index 0ff35bfa..a2834063 100644 --- a/include/backend/udev.h +++ b/include/backend/udev.h @@ -1,18 +1,29 @@ #ifndef _WLR_INTERNAL_UDEV_H #define _WLR_INTERNAL_UDEV_H +#include #include #include #include #include +struct wlr_udev_dev { + dev_t dev; + struct wl_signal invalidate; + + struct wl_list link; +}; + struct wlr_udev { struct udev *udev; struct udev_monitor *mon; struct wl_event_source *event; - struct wl_signal invalidate_drm; + + struct wl_list devices; }; int wlr_udev_find_gpu(struct wlr_udev *udev, struct wlr_session *session); +bool wlr_udev_signal_add(struct wlr_udev *udev, dev_t dev, struct wl_listener *listener); +void wlr_udev_signal_remove(struct wlr_udev *udev, struct wl_listener *listener); #endif -- cgit v1.2.3