FreeRDP
Loading...
Searching...
No Matches
cache/brush.h
1
20#ifndef FREERDP_LIB_BRUSH_CACHE_H
21#define FREERDP_LIB_BRUSH_CACHE_H
22
23#include <freerdp/api.h>
24#include <freerdp/types.h>
25#include <freerdp/freerdp.h>
26#include <freerdp/update.h>
27
28#include <winpr/stream.h>
29
30typedef struct rdp_brush_cache rdpBrushCache;
31
32#ifdef __cplusplus
33extern "C"
34{
35#endif
36
37 WINPR_ATTR_NODISCARD
38 FREERDP_LOCAL void* brush_cache_get(rdpBrushCache* brush, UINT32 index, UINT32* bpp);
39 FREERDP_LOCAL void brush_cache_put(rdpBrushCache* brush, UINT32 index, void* entry, UINT32 bpp);
40
41 FREERDP_LOCAL void brush_cache_register_callbacks(rdpUpdate* update);
42
43 FREERDP_LOCAL void brush_cache_free(rdpBrushCache* brush);
44
45 WINPR_ATTR_MALLOC(brush_cache_free, 1)
46 WINPR_ATTR_NODISCARD
47 FREERDP_LOCAL rdpBrushCache* brush_cache_new(rdpContext* context);
48
49 FREERDP_LOCAL void free_cache_brush_order(rdpContext* context, CACHE_BRUSH_ORDER* order);
50
51 WINPR_ATTR_MALLOC(free_cache_brush_order, 1)
52 WINPR_ATTR_NODISCARD
53 FREERDP_LOCAL CACHE_BRUSH_ORDER* copy_cache_brush_order(rdpContext* context,
54 const CACHE_BRUSH_ORDER* order);
55
56#ifdef __cplusplus
57}
58#endif
59
60#endif /* FREERDP_LIB_BRUSH_CACHE_H */