From f6cbe92b948a52348260df5f56a7152dfce60ed2 Mon Sep 17 00:00:00 2001 From: Kobi Mizrachi Date: Mon, 6 Jul 2020 10:32:59 +0300 Subject: [PATCH] rail: server: rename rail_send_pdu -> rail_server_send_pdu (cherry picked from commit ec06a98e84690a9cf64d080145b71ca9a2e084fa) --- channels/rail/server/rail_main.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/channels/rail/server/rail_main.c b/channels/rail/server/rail_main.c index 71ad047..e606b90 100644 --- a/channels/rail/server/rail_main.c +++ b/channels/rail/server/rail_main.c @@ -60,7 +60,7 @@ static UINT rail_send(RailServerContext* context, wStream* s, ULONG length) * * @return 0 on success, otherwise a Win32 error code */ -static UINT rail_send_pdu(RailServerContext* context, wStream* s, UINT16 orderType) +static UINT rail_server_send_pdu(RailServerContext* context, wStream* s, UINT16 orderType) { UINT16 orderLength; @@ -278,7 +278,7 @@ static UINT rail_send_server_handshake(RailServerContext* context, } rail_write_handshake_order(s, handshake); - error = rail_send_pdu(context, s, TS_RAIL_ORDER_HANDSHAKE); + error = rail_server_send_pdu(context, s, TS_RAIL_ORDER_HANDSHAKE); Stream_Free(s, TRUE); return error; } @@ -308,7 +308,7 @@ static UINT rail_send_server_handshake_ex(RailServerContext* context, } rail_write_handshake_ex_order(s, handshakeEx); - error = rail_send_pdu(context, s, TS_RAIL_ORDER_HANDSHAKE_EX); + error = rail_server_send_pdu(context, s, TS_RAIL_ORDER_HANDSHAKE_EX); Stream_Free(s, TRUE); return error; } @@ -344,7 +344,7 @@ static UINT rail_send_server_sysparam(RailServerContext* context, } rail_write_sysparam_order(s, sysparam, extendedSpiSupported); - error = rail_send_pdu(context, s, TS_RAIL_ORDER_SYSPARAM); + error = rail_server_send_pdu(context, s, TS_RAIL_ORDER_SYSPARAM); Stream_Free(s, TRUE); return error; } @@ -372,7 +372,7 @@ static UINT rail_send_server_local_move_size(RailServerContext* context, } rail_write_local_move_size_order(s, localMoveSize); - error = rail_send_pdu(context, s, TS_RAIL_ORDER_LOCALMOVESIZE); + error = rail_server_send_pdu(context, s, TS_RAIL_ORDER_LOCALMOVESIZE); Stream_Free(s, TRUE); return error; } @@ -400,7 +400,7 @@ static UINT rail_send_server_min_max_info(RailServerContext* context, } rail_write_min_max_info_order(s, minMaxInfo); - error = rail_send_pdu(context, s, TS_RAIL_ORDER_MINMAXINFO); + error = rail_server_send_pdu(context, s, TS_RAIL_ORDER_MINMAXINFO); Stream_Free(s, TRUE); return error; } @@ -428,7 +428,7 @@ static UINT rail_send_server_taskbar_info(RailServerContext* context, } rail_write_taskbar_info_order(s, taskbarInfo); - error = rail_send_pdu(context, s, TS_RAIL_ORDER_TASKBARINFO); + error = rail_server_send_pdu(context, s, TS_RAIL_ORDER_TASKBARINFO); Stream_Free(s, TRUE); return error; } @@ -456,7 +456,7 @@ static UINT rail_send_server_langbar_info(RailServerContext* context, } rail_write_langbar_info_order(s, langbarInfo); - error = rail_send_pdu(context, s, TS_RAIL_ORDER_LANGBARINFO); + error = rail_server_send_pdu(context, s, TS_RAIL_ORDER_LANGBARINFO); Stream_Free(s, TRUE); return error; } @@ -484,7 +484,7 @@ static UINT rail_send_server_exec_result(RailServerContext* context, } rail_write_exec_result_order(s, execResult); - error = rail_send_pdu(context, s, TS_RAIL_ORDER_EXEC_RESULT); + error = rail_server_send_pdu(context, s, TS_RAIL_ORDER_EXEC_RESULT); Stream_Free(s, TRUE); return error; } @@ -512,7 +512,7 @@ static UINT rail_send_server_z_order_sync(RailServerContext* context, } rail_write_z_order_sync_order(s, zOrderSync); - error = rail_send_pdu(context, s, TS_RAIL_ORDER_ZORDER_SYNC); + error = rail_server_send_pdu(context, s, TS_RAIL_ORDER_ZORDER_SYNC); Stream_Free(s, TRUE); return error; } @@ -539,7 +539,7 @@ static UINT rail_send_server_cloak(RailServerContext* context, const RAIL_CLOAK* } rail_write_cloak_order(s, cloak); - error = rail_send_pdu(context, s, TS_RAIL_ORDER_CLOAK); + error = rail_server_send_pdu(context, s, TS_RAIL_ORDER_CLOAK); Stream_Free(s, TRUE); return error; } @@ -568,7 +568,7 @@ rail_send_server_power_display_request(RailServerContext* context, } rail_write_power_display_request_order(s, powerDisplayRequest); - error = rail_send_pdu(context, s, TS_RAIL_ORDER_POWER_DISPLAY_REQUEST); + error = rail_server_send_pdu(context, s, TS_RAIL_ORDER_POWER_DISPLAY_REQUEST); Stream_Free(s, TRUE); return error; } @@ -596,7 +596,7 @@ static UINT rail_send_server_get_app_id_resp(RailServerContext* context, } rail_write_get_app_id_resp_order(s, getAppidResp); - error = rail_send_pdu(context, s, TS_RAIL_ORDER_GET_APPID_RESP); + error = rail_server_send_pdu(context, s, TS_RAIL_ORDER_GET_APPID_RESP); Stream_Free(s, TRUE); return error; } @@ -624,7 +624,7 @@ static UINT rail_send_server_get_appid_resp_ex(RailServerContext* context, } rail_write_get_appid_resp_ex_order(s, getAppidRespEx); - error = rail_send_pdu(context, s, TS_RAIL_ORDER_GET_APPID_RESP_EX); + error = rail_server_send_pdu(context, s, TS_RAIL_ORDER_GET_APPID_RESP_EX); Stream_Free(s, TRUE); return error; } -- 2.7.4