mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
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:
parent
768fbaad54
commit
76bcddf071
2 changed files with 31 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue