21#ifndef FREERDP_SERVER_PROXY_RDPDR_H
22#define FREERDP_SERVER_PROXY_RDPDR_H
24#include <freerdp/server/proxy/proxy_context.h>
26WINPR_ATTR_NODISCARD BOOL pf_channel_setup_rdpdr(pServerContext* ps,
27 pServerStaticChannelContext* channel);
29void pf_channel_rdpdr_client_free(pClientContext* pc);
31WINPR_ATTR_NODISCARD BOOL pf_channel_rdpdr_client_new(pClientContext* pc);
33BOOL pf_channel_rdpdr_client_reset(pClientContext* pc);
35WINPR_ATTR_NODISCARD BOOL pf_channel_rdpdr_client_handle(pClientContext* pc, UINT16 channelId,
36 const char* channel_name,
37 const BYTE* xdata,
size_t xsize,
38 UINT32 flags,
size_t totalSize);
40void pf_channel_rdpdr_server_free(pServerContext* ps);
42WINPR_ATTR_NODISCARD BOOL pf_channel_rdpdr_server_new(pServerContext* ps);
44WINPR_ATTR_NODISCARD BOOL pf_channel_rdpdr_server_announce(pServerContext* ps);
45WINPR_ATTR_NODISCARD BOOL pf_channel_rdpdr_server_handle(pServerContext* ps, UINT16 channelId,
46 const char* channel_name,
47 const BYTE* xdata,
size_t xsize,
48 UINT32 flags,
size_t totalSize);