Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Commit

Permalink
Drop RDP backend
Browse files Browse the repository at this point in the history
Users interested in remote access to wlroots compositors should use
wayvnc:

https://github.com/any1/wayvnc
  • Loading branch information
ddevault authored and emersion committed Jan 10, 2020
1 parent 802ef9d commit ebdbe17
Show file tree
Hide file tree
Showing 18 changed files with 1 addition and 1,379 deletions.
1 change: 0 additions & 1 deletion .builds/alpine.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
image: alpine/edge
packages:
- eudev-dev
- freerdp-dev
- ffmpeg-dev
- libcap-dev
- libinput-dev
Expand Down
1 change: 0 additions & 1 deletion .builds/archlinux.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
image: archlinux
packages:
- clang
- freerdp
- ffmpeg
- libcap
- libinput
Expand Down
1 change: 0 additions & 1 deletion .builds/freebsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ packages:
- graphics/wayland
- graphics/wayland-protocols
- multimedia/ffmpeg
- net/freerdp
- x11/libX11
- x11/libinput
- x11/libxcb
Expand Down
39 changes: 0 additions & 39 deletions backend/backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
#if WLR_HAS_X11_BACKEND
#include <wlr/backend/x11.h>
#endif
#if WLR_HAS_RDP_BACKEND
#include <wlr/backend/rdp.h>
#endif

void wlr_backend_init(struct wlr_backend *backend,
const struct wlr_backend_impl *impl) {
Expand Down Expand Up @@ -137,38 +134,6 @@ static struct wlr_backend *attempt_headless_backend(
return backend;
}

#if WLR_HAS_RDP_BACKEND
static struct wlr_backend *attempt_rdp_backend(struct wl_display *display,
wlr_renderer_create_func_t create_renderer_func) {
const char *cert_path = getenv("WLR_RDP_TLS_CERT_PATH");
const char *key_path = getenv("WLR_RDP_TLS_KEY_PATH");
if (!cert_path || !key_path) {
wlr_log(WLR_ERROR, "The RDP backend requires WLR_RDP_TLS_CERT_PATH "
"and WLR_RDP_TLS_KEY_PATH to be set.");
return NULL;
}
struct wlr_backend *backend = wlr_rdp_backend_create(
display, create_renderer_func, cert_path, key_path);
const char *address = getenv("WLR_RDP_ADDRESS");
if (address) {
wlr_rdp_backend_set_address(backend, address);
}
const char *_port = getenv("WLR_RDP_PORT");
if (_port) {
char *endptr;
int port = strtol(_port, &endptr, 10);
if (*endptr || port <= 0 || port > 65535) {
wlr_log(WLR_ERROR, "Expected WLR_RDP_PORT to be a "
"positive integer less or equal to 65535");
wlr_backend_destroy(backend);
return NULL;
}
wlr_rdp_backend_set_port(backend, port);
}
return backend;
}
#endif

static struct wlr_backend *attempt_noop_backend(struct wl_display *display) {
struct wlr_backend *backend = wlr_noop_backend_create(display);
if (backend == NULL) {
Expand Down Expand Up @@ -220,10 +185,6 @@ static struct wlr_backend *attempt_backend_by_name(struct wl_display *display,
#endif
} else if (strcmp(name, "headless") == 0) {
return attempt_headless_backend(display, create_renderer_func);
#if WLR_HAS_RDP_BACKEND
} else if (strcmp(name, "rdp") == 0) {
return attempt_rdp_backend(display, create_renderer_func);
#endif
} else if (strcmp(name, "noop") == 0) {
return attempt_noop_backend(display);
} else if (strcmp(name, "drm") == 0 || strcmp(name, "libinput") == 0) {
Expand Down
1 change: 0 additions & 1 deletion backend/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ subdir('headless')
subdir('libinput')
subdir('multi')
subdir('noop')
subdir('rdp')
subdir('wayland')
subdir('x11')

Expand Down
133 changes: 0 additions & 133 deletions backend/rdp/backend.c

This file was deleted.

Loading

0 comments on commit ebdbe17

Please sign in to comment.