aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/backend/headless.h9
-rw-r--r--include/wlr/backend/headless.h4
2 files changed, 10 insertions, 3 deletions
diff --git a/include/backend/headless.h b/include/backend/headless.h
index 6aaf5f76..91ff37dd 100644
--- a/include/backend/headless.h
+++ b/include/backend/headless.h
@@ -10,11 +10,12 @@ struct wlr_headless_backend {
struct wlr_egl egl;
struct wl_display *display;
struct wl_list outputs;
+ struct wl_list input_devices;
struct wl_listener display_destroy;
bool started;
};
-struct wlr_headless_backend_output {
+struct wlr_headless_output {
struct wlr_output wlr_output;
struct wlr_headless_backend *backend;
@@ -25,4 +26,10 @@ struct wlr_headless_backend_output {
int frame_delay; // ms
};
+struct wlr_headless_input_device {
+ struct wlr_input_device wlr_input_device;
+
+ struct wlr_headless_backend *backend;
+};
+
#endif
diff --git a/include/wlr/backend/headless.h b/include/wlr/backend/headless.h
index 245a65dc..68ad84da 100644
--- a/include/wlr/backend/headless.h
+++ b/include/wlr/backend/headless.h
@@ -7,8 +7,8 @@
struct wlr_backend *wlr_headless_backend_create(struct wl_display *display);
struct wlr_output *wlr_headless_add_output(struct wlr_backend *backend,
unsigned int width, unsigned int height);
-struct wlr_input_device *wlr_headless_add_input(struct wlr_backend *backend,
- enum wlr_input_device_type type);
+struct wlr_input_device *wlr_headless_add_input_device(
+ struct wlr_backend *backend, enum wlr_input_device_type type);
bool wlr_backend_is_headless(struct wlr_backend *backend);
#endif