FreeRDP
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 
30 typedef struct rdp_brush_cache rdpBrushCache;
31 
32 #ifdef __cplusplus
33 extern "C"
34 {
35 #endif
36 
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);
39 
40  FREERDP_LOCAL void brush_cache_register_callbacks(rdpUpdate* update);
41 
42  FREERDP_LOCAL void brush_cache_free(rdpBrushCache* brush);
43 
44  WINPR_ATTR_MALLOC(brush_cache_free, 1)
45  FREERDP_LOCAL rdpBrushCache* brush_cache_new(rdpContext* context);
46 
47  FREERDP_LOCAL void free_cache_brush_order(rdpContext* context, CACHE_BRUSH_ORDER* order);
48 
49  WINPR_ATTR_MALLOC(free_cache_brush_order, 1)
50  FREERDP_LOCAL CACHE_BRUSH_ORDER* copy_cache_brush_order(rdpContext* context,
51  const CACHE_BRUSH_ORDER* order);
52 
53 #ifdef __cplusplus
54 }
55 #endif
56 
57 #endif /* FREERDP_LIB_BRUSH_CACHE_H */