From ebdbe177d62d3c8bab04f77b86326804ff185bef Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 10 Jan 2020 11:33:21 -0500 Subject: Drop RDP backend Users interested in remote access to wlroots compositors should use wayvnc: https://github.com/any1/wayvnc --- backend/rdp/pointer.c | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 backend/rdp/pointer.c (limited to 'backend/rdp/pointer.c') diff --git a/backend/rdp/pointer.c b/backend/rdp/pointer.c deleted file mode 100644 index b3fdcd73..00000000 --- a/backend/rdp/pointer.c +++ /dev/null @@ -1,40 +0,0 @@ -#define _POSIX_C_SOURCE 200809L -#include -#include -#include -#include -#include -#include -#include -#include -#include "backend/rdp.h" -#include "util/signal.h" - -static struct wlr_input_device_impl input_device_impl = { 0 }; - -struct wlr_rdp_input_device *wlr_rdp_pointer_create( - struct wlr_rdp_backend *backend, struct wlr_rdp_peer_context *context) { - struct wlr_rdp_input_device *device = - calloc(1, sizeof(struct wlr_rdp_input_device)); - if (!device) { - wlr_log(WLR_ERROR, "Failed to allocate RDP input device"); - return NULL; - } - - int vendor = 0; - int product = 0; - const char *name = "rdp"; - struct wlr_input_device *wlr_device = &device->wlr_input_device; - wlr_input_device_init(wlr_device, WLR_INPUT_DEVICE_POINTER, - &input_device_impl, name, vendor, product); - - if (!(wlr_device->pointer = calloc(1, sizeof(struct wlr_pointer)))) { - wlr_log(WLR_ERROR, "Failed to allocate RDP pointer device"); - return NULL; - } - wlr_device->output_name = strdup(context->output->wlr_output.name); - wlr_pointer_init(wlr_device->pointer, NULL); - - wlr_signal_emit_safe(&backend->backend.events.new_input, wlr_device); - return device; -} -- cgit v1.2.3