2017-06-02 02:29:10 +02:00
|
|
|
#ifndef _WLR_INTERNAL_UDEV_H
|
|
|
|
#define _WLR_INTERNAL_UDEV_H
|
2017-05-01 05:20:48 +02:00
|
|
|
|
2017-05-01 07:49:18 +02:00
|
|
|
#include <libudev.h>
|
2017-05-03 06:23:07 +02:00
|
|
|
#include <wlr/session.h>
|
2017-05-03 11:28:44 +02:00
|
|
|
#include <wayland-server.h>
|
2017-06-02 02:29:10 +02:00
|
|
|
#include <wlr/backend/udev.h>
|
2017-05-01 07:49:18 +02:00
|
|
|
|
|
|
|
struct wlr_udev {
|
|
|
|
struct udev *udev;
|
|
|
|
struct udev_monitor *mon;
|
|
|
|
char *drm_path;
|
2017-05-03 11:28:44 +02:00
|
|
|
struct wl_event_source *event;
|
2017-06-02 02:29:10 +02:00
|
|
|
struct wl_signal invalidate_drm;
|
2017-05-01 07:49:18 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
int wlr_udev_find_gpu(struct wlr_udev *udev, struct wlr_session *session);
|
|
|
|
|
2017-05-01 05:20:48 +02:00
|
|
|
#endif
|