20 #ifndef FREERDP_LIB_BRUSH_CACHE_H
21 #define FREERDP_LIB_BRUSH_CACHE_H
23 #include <freerdp/api.h>
24 #include <freerdp/types.h>
25 #include <freerdp/freerdp.h>
26 #include <freerdp/update.h>
28 #include <winpr/stream.h>
30 typedef struct rdp_brush_cache rdpBrushCache;
37 FREERDP_LOCAL
void* brush_cache_get(rdpBrushCache* brush, UINT32 index, UINT32* bpp);
38 FREERDP_LOCAL
void brush_cache_put(rdpBrushCache* brush, UINT32 index,
void* entry, UINT32 bpp);
40 FREERDP_LOCAL
void brush_cache_register_callbacks(rdpUpdate* update);
42 FREERDP_LOCAL
void brush_cache_free(rdpBrushCache* brush);
44 WINPR_ATTR_MALLOC(brush_cache_free, 1)
45 FREERDP_LOCAL rdpBrushCache* brush_cache_new(rdpContext* context);
47 FREERDP_LOCAL
void free_cache_brush_order(rdpContext* context,
CACHE_BRUSH_ORDER* order);
49 WINPR_ATTR_MALLOC(free_cache_brush_order, 1)