mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-04 13:29:45 -05:00
Refactor udev and drm initialization
This commit is contained in:
parent
62d612a01e
commit
40b85d992a
8 changed files with 69 additions and 44 deletions
19
include/backend/udev.h
Normal file
19
include/backend/udev.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#ifndef _WLR_INTERNAL_UDEV_H
|
||||
#define _WLR_INTERNAL_UDEV_H
|
||||
|
||||
#include <libudev.h>
|
||||
#include <wlr/session.h>
|
||||
#include <wayland-server.h>
|
||||
#include <wlr/backend/udev.h>
|
||||
|
||||
struct wlr_udev {
|
||||
struct udev *udev;
|
||||
struct udev_monitor *mon;
|
||||
char *drm_path;
|
||||
struct wl_event_source *event;
|
||||
struct wl_signal invalidate_drm;
|
||||
};
|
||||
|
||||
int wlr_udev_find_gpu(struct wlr_udev *udev, struct wlr_session *session);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue