mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-06 13:29:45 -05:00
Merge wlr_udev into wlr_session
This commit is contained in:
parent
46823152ea
commit
fb93628bda
18 changed files with 292 additions and 350 deletions
|
|
@ -7,7 +7,6 @@
|
|||
#include <wayland-server.h>
|
||||
#include <xf86drmMode.h>
|
||||
#include <EGL/egl.h>
|
||||
#include <libudev.h>
|
||||
#include <gbm.h>
|
||||
|
||||
#include <wlr/backend/session.h>
|
||||
|
|
@ -16,7 +15,6 @@
|
|||
#include <wlr/egl.h>
|
||||
#include <wlr/util/list.h>
|
||||
|
||||
#include <backend/udev.h>
|
||||
#include "drm-properties.h"
|
||||
|
||||
struct wlr_drm_plane {
|
||||
|
|
@ -124,7 +122,6 @@ struct wlr_drm_backend {
|
|||
|
||||
struct wlr_drm_renderer renderer;
|
||||
struct wlr_session *session;
|
||||
struct wlr_udev *udev;
|
||||
};
|
||||
|
||||
enum wlr_drm_output_state {
|
||||
|
|
|
|||
|
|
@ -6,13 +6,11 @@
|
|||
#include <wlr/backend/interface.h>
|
||||
#include <wlr/interfaces/wlr_input_device.h>
|
||||
#include <wlr/util/list.h>
|
||||
#include "backend/udev.h"
|
||||
|
||||
struct wlr_libinput_backend {
|
||||
struct wlr_backend backend;
|
||||
|
||||
struct wlr_session *session;
|
||||
struct wlr_udev *udev;
|
||||
struct wl_display *display;
|
||||
|
||||
struct libinput *libinput_context;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
#include <wlr/backend/interface.h>
|
||||
#include <wlr/backend/multi.h>
|
||||
#include <wlr/backend/udev.h>
|
||||
#include <wlr/util/list.h>
|
||||
#include <wlr/backend/session.h>
|
||||
|
||||
|
|
@ -11,7 +10,6 @@ struct wlr_multi_backend {
|
|||
struct wlr_backend backend;
|
||||
|
||||
struct wlr_session *session;
|
||||
struct wlr_udev *udev;
|
||||
list_t *backends;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,29 +0,0 @@
|
|||
#ifndef _WLR_INTERNAL_UDEV_H
|
||||
#define _WLR_INTERNAL_UDEV_H
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <libudev.h>
|
||||
#include <wlr/backend/session.h>
|
||||
#include <wayland-server.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 udev *udev;
|
||||
struct udev_monitor *mon;
|
||||
struct wl_event_source *event;
|
||||
|
||||
struct wl_list devices;
|
||||
};
|
||||
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue