rdp: Allow specifying a listener fd on the command line

We already have a way for a single RDP client connection to be
passed from a parent process to a child using a combination
of environment variable (RDP_FD) and env var (--env-socket)

This patch allows a bound socket fd (as opposed to a client
connection) to be established in a parent process and provided
to the rdp backend. WSLg uses this to set up an AF_VSOCK
socket for communication between a Windows RDP client and a
weston compositor running under a hypervisor.

Co-authored-by: Hideyuki Nagase <hideyukn@microsoft.com>
Co-authored-by: Steve Pronovost <spronovo@microsoft.com>
Signed-off-by: Hideyuki Nagase <hideyukn@microsoft.com>
Signed-off-by: Steve Pronovost <spronovo@microsoft.com>
Signed-off-by: Brenton DeGeer <brdegeer@microsoft.com>
This commit is contained in:
Brenton DeGeer
2022-03-15 12:24:42 -05:00
committed by Derek Foreman
parent 13e62c9d18
commit 2f9319cef6
5 changed files with 40 additions and 12 deletions
+1
View File
@@ -67,6 +67,7 @@ struct weston_rdp_backend_config {
int no_clients_resize;
int force_no_compression;
bool remotefx_codec;
int external_listener_fd;
};
#ifdef __cplusplus