[channel,rail] move client_rail_server_start_cmd

the function needs access to channel internals, so move to channel
This commit is contained in:
akallabeth 2023-10-23 12:17:23 +02:00 committed by Martin Fleisz
parent 16c4ede603
commit f0709d00a9
3 changed files with 7 additions and 8 deletions

View File

@ -20,6 +20,7 @@ define_channel_client("rail")
set(${MODULE_PREFIX}_SRCS
../rail_common.h
../rail_common.c
client_rails.c
rail_main.c
rail_main.h
rail_orders.c

View File

@ -1,8 +1,9 @@
#include <freerdp/freerdp.h>
#include <freerdp/client/rail.h>
#include "rail_main.h"
UINT client_rail_server_start_cmd(RailClientContext* context)
{
UINT status;
@ -10,15 +11,13 @@ UINT client_rail_server_start_cmd(RailClientContext* context)
RAIL_EXEC_ORDER exec = { 0 };
RAIL_SYSPARAM_ORDER sysparam = { 0 };
RAIL_CLIENT_STATUS_ORDER clientStatus = { 0 };
rdpClientContext* ctx;
rdpSettings* settings;
WINPR_ASSERT(context);
railPlugin* rail = context->handle;
WINPR_ASSERT(rail);
WINPR_ASSERT(rail->rdpcontext);
ctx = (rdpClientContext*)context->custom;
WINPR_ASSERT(ctx);
settings = ctx->context.settings;
const rdpSettings* settings = rail->rdpcontext->settings;
WINPR_ASSERT(settings);
clientStatus.flags = TS_RAIL_CLIENTSTATUS_ALLOWLOCALMOVESIZE;

View File

@ -27,7 +27,6 @@ endif()
set(SRCS
client.c
client_rails.c
cmdline.c
cmdline.h
file.c