mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-06-13 14:32:57 -04:00
backend/wscons: introduce new backend
This commit is contained in:
parent
f56f21b98f
commit
900ff30921
12 changed files with 1208 additions and 7 deletions
32
include/backend/wscons.h
Normal file
32
include/backend/wscons.h
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#ifndef BACKEND_WSCONS_H
|
||||
#define BACKEND_WSCONS_H
|
||||
|
||||
#include <wayland-server-core.h>
|
||||
#include <wlr/backend/interface.h>
|
||||
#include <wlr/backend/wscons.h>
|
||||
#include <wlr/types/wlr_keyboard.h>
|
||||
#include <wlr/types/wlr_pointer.h>
|
||||
#include <wlr/backend/session.h>
|
||||
|
||||
struct wlr_wscons_backend {
|
||||
struct wlr_backend backend;
|
||||
|
||||
struct wlr_device *mouse_dev;
|
||||
struct wlr_device *kbd_dev;
|
||||
|
||||
struct wlr_keyboard kbd;
|
||||
struct wlr_pointer mouse;
|
||||
|
||||
unsigned kbd_type;
|
||||
int kqueue_fd;
|
||||
|
||||
struct wlr_session *session;
|
||||
|
||||
struct wl_event_source *input_event;
|
||||
struct wl_listener session_destroy;
|
||||
};
|
||||
|
||||
extern const struct wlr_keyboard_impl wscons_keyboard_impl;
|
||||
extern const struct wlr_pointer_impl wscons_pointer_impl;
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue