FreeRDP
Loading...
Searching...
No Matches
rdpgfx_common.h
1
22#ifndef FREERDP_CHANNEL_RDPGFX_COMMON_H
23#define FREERDP_CHANNEL_RDPGFX_COMMON_H
24
25#include <winpr/crt.h>
26#include <winpr/stream.h>
27
28#include <freerdp/config.h>
29#include <freerdp/channels/rdpgfx.h>
30#include <freerdp/api.h>
31#include <freerdp/utils/gfx.h>
32
33FREERDP_LOCAL UINT rdpgfx_read_header(wStream* s, RDPGFX_HEADER* header);
34FREERDP_LOCAL UINT rdpgfx_write_header(wStream* s, const RDPGFX_HEADER* header);
35
36FREERDP_LOCAL UINT rdpgfx_read_point16(wStream* s, RDPGFX_POINT16* pt16);
37FREERDP_LOCAL UINT rdpgfx_write_point16(wStream* s, const RDPGFX_POINT16* point16);
38
39FREERDP_LOCAL UINT rdpgfx_read_rect16(wStream* s, RECTANGLE_16* rect16);
40FREERDP_LOCAL UINT rdpgfx_write_rect16(wStream* s, const RECTANGLE_16* rect16);
41
42FREERDP_LOCAL UINT rdpgfx_read_color32(wStream* s, RDPGFX_COLOR32* color32);
43FREERDP_LOCAL UINT rdpgfx_write_color32(wStream* s, const RDPGFX_COLOR32* color32);
44
45#ifdef WITH_DEBUG_RDPGFX
46#define DEBUG_RDPGFX(_LOGGER, ...) WLog_Print(_LOGGER, WLOG_DEBUG, __VA_ARGS__)
47#else
48#define DEBUG_RDPGFX(_LOGGER, ...) \
49 do \
50 { \
51 } while (0)
52#endif
53
54#endif /* FREERDP_CHANNEL_RDPGFX_COMMON_H */