From 76bcddf071454cd373bd09e2619c0cb03a377350 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 6 Nov 2020 10:56:13 +0100 Subject: backend/session: introduce wlr_session.events.add_drm_card This is triggered when a new DRM card is added. An easy way to test this patch is `modprobe vkms`. --- include/wlr/backend/session.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/wlr/backend/session.h b/include/wlr/backend/session.h index 82f22a3f..b63c356c 100644 --- a/include/wlr/backend/session.h +++ b/include/wlr/backend/session.h @@ -43,10 +43,15 @@ struct wlr_session { struct wl_listener display_destroy; struct { + struct wl_signal add_drm_card; // struct wlr_session_add_event struct wl_signal destroy; } events; }; +struct wlr_session_add_event { + const char *path; +}; + /* * Opens a session, taking control of the current virtual terminal. * This should not be called if another program is already in control -- cgit v1.2.3