mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
d8ca494558
This helper is responsible for listening for new DRM devices and create new child DRM backends as necessary.
17 lines
588 B
C
17 lines
588 B
C
#ifndef BACKEND_SESSION_SESSION_H
|
|
#define BACKEND_SESSION_SESSION_H
|
|
|
|
struct wlr_session;
|
|
|
|
struct wlr_session *libseat_session_create(struct wl_display *disp);
|
|
void libseat_session_destroy(struct wlr_session *base);
|
|
int libseat_session_open_device(struct wlr_session *base, const char *path);
|
|
void libseat_session_close_device(struct wlr_session *base, int fd);
|
|
bool libseat_change_vt(struct wlr_session *base, unsigned vt);
|
|
|
|
void session_init(struct wlr_session *session);
|
|
|
|
struct wlr_device *session_open_if_kms(struct wlr_session *restrict session,
|
|
const char *restrict path);
|
|
|
|
#endif
|