diff options
author | Simon Ser <contact@emersion.fr> | 2020-11-06 10:56:13 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-11-19 22:47:49 +0100 |
commit | 76bcddf071454cd373bd09e2619c0cb03a377350 (patch) | |
tree | 6b56079cb518e660fbd25ecd102c10103cc83a90 /include/wlr/backend | |
parent | 768fbaad54027f8dd027e7e015e8eeb93cb38c52 (diff) |
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`.
Diffstat (limited to 'include/wlr/backend')
-rw-r--r-- | include/wlr/backend/session.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 |