FreeRDP
rpc_client.h
1 
20 #ifndef FREERDP_LIB_CORE_GATEWAY_RPC_CLIENT_H
21 #define FREERDP_LIB_CORE_GATEWAY_RPC_CLIENT_H
22 
23 #include <winpr/wtypes.h>
24 #include <winpr/stream.h>
25 #include <freerdp/api.h>
26 
27 #include "rpc.h"
28 
29 FREERDP_LOCAL RpcClientCall* rpc_client_call_find_by_id(RpcClient* client, UINT32 CallId);
30 
31 FREERDP_LOCAL void rpc_client_call_free(RpcClientCall* client_call);
32 
33 WINPR_ATTR_MALLOC(rpc_client_call_free, 1)
34 FREERDP_LOCAL RpcClientCall* rpc_client_call_new(UINT32 CallId, UINT32 OpNum);
35 
36 FREERDP_LOCAL int rpc_in_channel_send_pdu(RpcInChannel* inChannel, const BYTE* buffer,
37  size_t length);
38 
39 FREERDP_LOCAL int rpc_client_in_channel_recv(rdpRpc* rpc);
40 FREERDP_LOCAL int rpc_client_out_channel_recv(rdpRpc* rpc);
41 
42 FREERDP_LOCAL int rpc_client_receive_pipe_read(RpcClient* client, BYTE* buffer, size_t length);
43 
44 FREERDP_LOCAL BOOL rpc_client_write_call(rdpRpc* rpc, wStream* s, UINT16 opnum);
45 
46 FREERDP_LOCAL void rpc_client_free(RpcClient* client);
47 
48 WINPR_ATTR_MALLOC(rpc_client_free, 1)
49 FREERDP_LOCAL RpcClient* rpc_client_new(rdpContext* context, UINT32 max_recv_frag);
50 
51 #endif /* FREERDP_LIB_CORE_GATEWAY_RPC_CLIENT_H */