mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-06-13 14:32:57 -04:00
Merge branch 'wscons' into 'master'
Draft: Add OpenBSD/wscons support See merge request wlroots/wlroots!5378
This commit is contained in:
commit
90cf273319
24 changed files with 1531 additions and 179 deletions
|
|
@ -6,6 +6,7 @@
|
|||
#include <wayland-server-core.h>
|
||||
|
||||
struct libseat;
|
||||
struct drm_event_monitor;
|
||||
|
||||
/**
|
||||
* An opened physical device.
|
||||
|
|
@ -45,9 +46,8 @@ struct wlr_session {
|
|||
|
||||
char seat[256];
|
||||
|
||||
struct udev *udev;
|
||||
struct udev_monitor *mon;
|
||||
struct wl_event_source *udev_event;
|
||||
struct drm_event_monitor *drm_handle;
|
||||
struct wl_event_source *drm_event;
|
||||
|
||||
struct libseat *seat_handle;
|
||||
struct wl_event_source *libseat_event;
|
||||
|
|
|
|||
23
include/wlr/backend/wscons.h
Normal file
23
include/wlr/backend/wscons.h
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* This an unstable interface of wlroots. No guarantees are made regarding the
|
||||
* future consistency of this API.
|
||||
*/
|
||||
#ifndef WLR_USE_UNSTABLE
|
||||
#error "Add -DWLR_USE_UNSTABLE to enable unstable wlroots features"
|
||||
#endif
|
||||
|
||||
#ifndef WLR_BACKEND_WSCONS_H
|
||||
#define WLR_BACKEND_WSCONS_H
|
||||
|
||||
#include <wayland-server-core.h>
|
||||
#include <wlr/backend.h>
|
||||
#include <wlr/backend/session.h>
|
||||
|
||||
struct wlr_input_device;
|
||||
|
||||
struct wlr_backend *wlr_wscons_backend_create(struct wlr_session *session);
|
||||
|
||||
bool wlr_backend_is_wscons(const struct wlr_backend *backend);
|
||||
bool wlr_input_device_is_wscons(struct wlr_input_device *device);
|
||||
|
||||
#endif
|
||||
|
|
@ -15,6 +15,13 @@
|
|||
* Required for <wlr/backend/libinput.h>.
|
||||
*/
|
||||
#mesondefine WLR_HAS_LIBINPUT_BACKEND
|
||||
/**
|
||||
* Whether the wscons backend is compile-time enabled. Equivalent to the
|
||||
* pkg-config "have_wscons_backend" vartiable.
|
||||
*
|
||||
* Required for <wlr/backend/wscons.h>.
|
||||
*/
|
||||
#mesondefine WLR_HAS_WSCONS_BACKEND
|
||||
/**
|
||||
* Whether the X11 backend is compile-time enabled. Equivalent to the
|
||||
* pkg-config "have_x11_backend" variable.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue