parent
de44994dfc
commit
5df56653ab
@ -1,18 +1,29 @@
|
|||||||
#ifndef _WLR_INTERNAL_UDEV_H
|
#ifndef _WLR_INTERNAL_UDEV_H
|
||||||
#define _WLR_INTERNAL_UDEV_H
|
#define _WLR_INTERNAL_UDEV_H
|
||||||
|
|
||||||
|
#include <sys/types.h>
|
||||||
#include <libudev.h>
|
#include <libudev.h>
|
||||||
#include <wlr/session.h>
|
#include <wlr/session.h>
|
||||||
#include <wayland-server.h>
|
#include <wayland-server.h>
|
||||||
#include <wlr/backend/udev.h>
|
#include <wlr/backend/udev.h>
|
||||||
|
|
||||||
|
struct wlr_udev_dev {
|
||||||
|
dev_t dev;
|
||||||
|
struct wl_signal invalidate;
|
||||||
|
|
||||||
|
struct wl_list link;
|
||||||
|
};
|
||||||
|
|
||||||
struct wlr_udev {
|
struct wlr_udev {
|
||||||
struct udev *udev;
|
struct udev *udev;
|
||||||
struct udev_monitor *mon;
|
struct udev_monitor *mon;
|
||||||
struct wl_event_source *event;
|
struct wl_event_source *event;
|
||||||
struct wl_signal invalidate_drm;
|
|
||||||
|
struct wl_list devices;
|
||||||
};
|
};
|
||||||
|
|
||||||
int wlr_udev_find_gpu(struct wlr_udev *udev, struct wlr_session *session);
|
int wlr_udev_find_gpu(struct wlr_udev *udev, struct wlr_session *session);
|
||||||
|
bool wlr_udev_signal_add(struct wlr_udev *udev, dev_t dev, struct wl_listener *listener);
|
||||||
|
void wlr_udev_signal_remove(struct wlr_udev *udev, struct wl_listener *listener);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in new issue