FreeRDP
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
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
29FREERDP_LOCAL RpcClientCall* rpc_client_call_find_by_id(RpcClient* client, UINT32 CallId);
30
31FREERDP_LOCAL void rpc_client_call_free(RpcClientCall* client_call);
32
33WINPR_ATTR_MALLOC(rpc_client_call_free, 1)
34FREERDP_LOCAL RpcClientCall* rpc_client_call_new(UINT32 CallId, UINT32 OpNum);
35
36FREERDP_LOCAL int rpc_in_channel_send_pdu(RpcInChannel* inChannel, const BYTE* buffer,
37 size_t length);
38
39FREERDP_LOCAL int rpc_client_in_channel_recv(rdpRpc* rpc);
40FREERDP_LOCAL int rpc_client_out_channel_recv(rdpRpc* rpc);
41
42FREERDP_LOCAL int rpc_client_receive_pipe_read(RpcClient* client, BYTE* buffer, size_t length);
43
44FREERDP_LOCAL BOOL rpc_client_write_call(rdpRpc* rpc, wStream* s, UINT16 opnum);
45
46FREERDP_LOCAL void rpc_client_free(RpcClient* client);
47
48WINPR_ATTR_MALLOC(rpc_client_free, 1)
49FREERDP_LOCAL RpcClient* rpc_client_new(rdpContext* context, UINT32 max_recv_frag);
50
51#endif /* FREERDP_LIB_CORE_GATEWAY_RPC_CLIENT_H */