FreeRDP
Loading...
Searching...
No Matches
urbdrc_helpers.h
1
21#ifndef FREERDP_CHANNEL_URBDRC_HELPERS_H
22#define FREERDP_CHANNEL_URBDRC_HELPERS_H
23
24#include <winpr/wtypes.h>
25
26#ifdef __cplusplus
27extern "C"
28{
29#endif
30
31#include <winpr/wlog.h>
32#include <winpr/stream.h>
33#include <freerdp/api.h>
34
35 WINPR_ATTR_NODISCARD FREERDP_LOCAL const char* urb_function_string(UINT16 urb);
36
37 WINPR_ATTR_NODISCARD FREERDP_LOCAL const char* mask_to_string(UINT32 mask);
38
39 WINPR_ATTR_NODISCARD FREERDP_LOCAL const char* interface_to_string(UINT32 id);
40
41 WINPR_ATTR_NODISCARD FREERDP_LOCAL const char* call_to_string(BOOL client, UINT32 interfaceNr,
42 UINT32 functionId);
43
44 FREERDP_LOCAL
45 void urbdrc_dump_message(wLog* log, BOOL client, BOOL write, wStream* s);
46
47 WINPR_ATTR_MALLOC(Stream_Free, 1)
48 WINPR_ATTR_NODISCARD FREERDP_LOCAL wStream*
49 create_shared_message_header_with_functionid(UINT32 InterfaceId, UINT32 MessageId,
50 UINT32 FunctionId, size_t OutputSize);
51
52 WINPR_ATTR_NODISCARD FREERDP_LOCAL BOOL write_shared_message_header_with_functionid(
53 wStream* s, UINT32 InterfaceId, UINT32 MessageId, UINT32 FunctionId);
54
55#ifdef __cplusplus
56}
57#endif
58
59#endif /* FREERDP_CHANNEL_URBDRC_HELPERS_H */