21 #ifndef FREERDP_STREAM_DUMP_H
22 #define FREERDP_STREAM_DUMP_H
24 #include <winpr/stream.h>
25 #include <winpr/wtypes.h>
27 #include <freerdp/api.h>
28 #include <freerdp/types.h>
35 typedef struct stream_dump_context rdpStreamDumpContext;
39 STREAM_MSG_SRV_RX = 1,
41 } StreamDumpDirection;
43 FREERDP_API SSIZE_T stream_dump_append(
const rdpContext* context, UINT32 flags,
wStream* s,
45 FREERDP_API SSIZE_T stream_dump_get(
const rdpContext* context, UINT32* flags,
wStream* s,
46 size_t* offset, UINT64* pts);
48 FREERDP_API BOOL stream_dump_register_handlers(rdpContext* context, CONNECTION_STATE state,
51 FREERDP_API
void stream_dump_free(rdpStreamDumpContext* dump);
53 WINPR_ATTR_MALLOC(stream_dump_free, 1)
54 FREERDP_API rdpStreamDumpContext* stream_dump_new(
void);