mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-05 13:29:47 -05:00
Changed backend to accept wl_display.
This commit is contained in:
parent
0002b8dd08
commit
d196a79b6c
8 changed files with 106 additions and 112 deletions
|
|
@ -4,15 +4,18 @@
|
|||
#include <libudev.h>
|
||||
|
||||
#include <wlr/session.h>
|
||||
#include <wayland-server.h>
|
||||
|
||||
struct wlr_udev {
|
||||
struct udev *udev;
|
||||
struct udev_monitor *mon;
|
||||
char *drm_path;
|
||||
|
||||
struct wl_event_source *event;
|
||||
};
|
||||
|
||||
struct wlr_drm_backend;
|
||||
bool wlr_udev_init(struct wlr_drm_backend *backend);
|
||||
bool wlr_udev_init(struct wl_display *display, struct wlr_udev *udev);
|
||||
void wlr_udev_free(struct wlr_udev *udev);
|
||||
int wlr_udev_find_gpu(struct wlr_udev *udev, struct wlr_session *session);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue