18#ifndef FREERDP_LIB_CORE_SERVER_TUNNEL_H
19#define FREERDP_LIB_CORE_SERVER_TUNNEL_H
21#include <freerdp/config.h>
22#include <freerdp/api.h>
32typedef BOOL (*wtsTunnelReadPduFn)(rdpPeerChannel* channel,
wStream* s, UINT8 Cmd, UINT8 Sp,
33 UINT8 cbChId, BOOL fromTunnel);
35#if defined(WITH_RDPEUDP_SERVER)
39 wtsTunnelReadPduFn readPdu);
47FREERDP_LOCAL BOOL wts_tunnel_is_soft_sync_response(UINT8 Cmd);
63 const BYTE* buffer, UINT32 length, BOOL* status);
83FREERDP_LOCAL BOOL wts_tunnel_close_request(rdpPeerChannel* channel,
const BYTE* data,
84 size_t length, BOOL* status);
90FREERDP_LOCAL BOOL wts_tunnel_queue_send_item(rdpPeerChannel* channel, BYTE* buffer, UINT32 length,
97 WINPR_ATTR_UNUSED rdpContext* context,
98 WINPR_ATTR_UNUSED wtsTunnelReadPduFn readPdu)
112static inline BOOL wts_tunnel_is_soft_sync_response(WINPR_ATTR_UNUSED UINT8 Cmd)
134 WINPR_ATTR_UNUSED UINT32
id,
135 WINPR_ATTR_UNUSED
const BYTE* buffer,
136 WINPR_ATTR_UNUSED UINT32 length,
137 WINPR_ATTR_UNUSED BOOL* status)
151 WINPR_ATTR_UNUSED rdpPeerChannel* channel,
152 WINPR_ATTR_UNUSED
wStream* s, BOOL* onTunnel)
159static inline BOOL wts_tunnel_close_request(WINPR_ATTR_UNUSED rdpPeerChannel* channel,
160 WINPR_ATTR_UNUSED
const BYTE* data,
161 WINPR_ATTR_UNUSED
size_t length,
162 WINPR_ATTR_UNUSED BOOL* status)
168static inline BOOL wts_tunnel_queue_send_item(WINPR_ATTR_UNUSED rdpPeerChannel* channel,
169 WINPR_ATTR_UNUSED BYTE* buffer,
170 WINPR_ATTR_UNUSED UINT32 length,
171 WINPR_ATTR_UNUSED BOOL* status)