aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-02-22 13:58:52 -0500
committerDrew DeVault <sir@cmpwn.com>2019-04-08 08:09:07 -0600
commitfd0d7d0907fcb8783c4bd2fbbd8c8812f3ba1494 (patch)
tree003f3d8f144c92cb4073a348fd4191c96eced18d /include/wlr
parent9faea17c738d9bfcdd241de7bae0bbe7590c77bf (diff)
Add FreeRDP backend for remote desktop support
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/backend/rdp.h31
-rw-r--r--include/wlr/config.h.in1
2 files changed, 32 insertions, 0 deletions
diff --git a/include/wlr/backend/rdp.h b/include/wlr/backend/rdp.h
new file mode 100644
index 00000000..3ba60c66
--- /dev/null
+++ b/include/wlr/backend/rdp.h
@@ -0,0 +1,31 @@
+/*
+ * 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_RDP_H
+#define WLR_BACKEND_RDP_H
+#include <wlr/backend.h>
+#include <wlr/types/wlr_input_device.h>
+#include <wlr/types/wlr_output.h>
+
+/**
+ * Creates an RDP backend. An RDP backend will create one output, keyboard, and
+ * pointer for each client that connects.
+ */
+struct wlr_backend *wlr_rdp_backend_create(struct wl_display *display,
+ wlr_renderer_create_func_t create_renderer_func,
+ const char *tls_cert_path, const char *tls_key_path);
+
+void wlr_rdp_backend_set_address(struct wlr_backend *wlr_backend,
+ const char *address);
+void wlr_rdp_backend_set_port(struct wlr_backend *wlr_backend, int port);
+
+bool wlr_backend_is_rdp(struct wlr_backend *backend);
+bool wlr_input_device_is_rdp(struct wlr_input_device *device);
+bool wlr_output_is_rdp(struct wlr_output *output);
+
+#endif
diff --git a/include/wlr/config.h.in b/include/wlr/config.h.in
index 94273fac..8d86b78d 100644
--- a/include/wlr/config.h.in
+++ b/include/wlr/config.h.in
@@ -7,6 +7,7 @@
#mesondefine WLR_HAS_ELOGIND
#mesondefine WLR_HAS_X11_BACKEND
+#mesondefine WLR_HAS_RDP_BACKEND
#mesondefine WLR_HAS_XWAYLAND