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`.
This commit is contained in:
Simon Ser 2020-11-06 10:56:13 +01:00
parent 768fbaad54
commit 76bcddf071
2 changed files with 31 additions and 7 deletions

View file

@ -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