wlroots/include/backend/drm/udev.h

25 lines
502 B
C
Raw Normal View History

2017-05-01 03:20:48 +00:00
#ifndef UDEV_H
#define UDEV_H
2017-05-01 05:49:18 +00:00
#include <libudev.h>
#include <wlr/session.h>
2017-05-03 09:28:44 +00:00
#include <wayland-server.h>
2017-05-01 05:49:18 +00:00
struct wlr_udev {
struct udev *udev;
struct udev_monitor *mon;
char *drm_path;
2017-05-03 09:28:44 +00:00
struct wl_event_source *event;
2017-05-01 05:49:18 +00:00
};
struct wlr_drm_backend;
2017-05-03 09:28:44 +00:00
bool wlr_udev_init(struct wl_display *display, struct wlr_udev *udev);
2017-05-01 05:49:18 +00:00
void wlr_udev_free(struct wlr_udev *udev);
int wlr_udev_find_gpu(struct wlr_udev *udev, struct wlr_session *session);
void wlr_udev_event(struct wlr_drm_backend *backend);
2017-05-01 03:20:48 +00:00
#endif