20 #ifndef FREERDP_LIB_CORE_GATEWAY_RPC_CLIENT_H
21 #define FREERDP_LIB_CORE_GATEWAY_RPC_CLIENT_H
23 #include <winpr/wtypes.h>
24 #include <winpr/stream.h>
25 #include <freerdp/api.h>
31 FREERDP_LOCAL
void rpc_client_call_free(
RpcClientCall* client_call);
33 WINPR_ATTR_MALLOC(rpc_client_call_free, 1)
34 FREERDP_LOCAL
RpcClientCall* rpc_client_call_new(UINT32 CallId, UINT32 OpNum);
36 FREERDP_LOCAL
int rpc_in_channel_send_pdu(
RpcInChannel* inChannel, const BYTE* buffer,
39 FREERDP_LOCAL
int rpc_client_in_channel_recv(rdpRpc* rpc);
40 FREERDP_LOCAL
int rpc_client_out_channel_recv(rdpRpc* rpc);
42 FREERDP_LOCAL
int rpc_client_receive_pipe_read(
RpcClient* client, BYTE* buffer,
size_t length);
44 FREERDP_LOCAL BOOL rpc_client_write_call(rdpRpc* rpc,
wStream* s, UINT16 opnum);
46 FREERDP_LOCAL
void rpc_client_free(
RpcClient* client);
48 WINPR_ATTR_MALLOC(rpc_client_free, 1)
49 FREERDP_LOCAL
RpcClient* rpc_client_new(rdpContext* context, UINT32 max_recv_frag);