FreeRDP
cache.h
1 
20 #ifndef FREERDP_LIB_CACHE_CACHE_H
21 #define FREERDP_LIB_CACHE_CACHE_H
22 
23 #include <freerdp/api.h>
24 #include <freerdp/freerdp.h>
25 #include <freerdp/pointer.h>
26 
27 #include "glyph.h"
28 #include "brush.h"
29 #include "pointer.h"
30 #include "bitmap.h"
31 #include "nine_grid.h"
32 #include "offscreen.h"
33 #include "palette.h"
34 
35 struct rdp_cache
36 {
37  rdpGlyphCache* glyph; /* 0 */
38  rdpBrushCache* brush; /* 1 */
39  rdpPointerCache* pointer; /* 2 */
40  rdpBitmapCache* bitmap; /* 3 */
41  rdpOffscreenCache* offscreen; /* 4 */
42  rdpPaletteCache* palette; /* 5 */
43  rdpNineGridCache* nine_grid; /* 6 */
44 };
45 
46 #ifdef __cplusplus
47 extern "C"
48 {
49 #endif
50 
51  FREERDP_LOCAL void cache_free(rdpCache* cache);
52 
53  WINPR_ATTR_MALLOC(cache_free, 1)
54  FREERDP_LOCAL rdpCache* cache_new(rdpContext* context);
55 
56  FREERDP_LOCAL void free_cache_color_table_order(rdpContext* context,
58 
59  WINPR_ATTR_MALLOC(free_cache_color_table_order, 2)
60  FREERDP_LOCAL CACHE_COLOR_TABLE_ORDER*
61  copy_cache_color_table_order(rdpContext* context, const CACHE_COLOR_TABLE_ORDER* order);
62 
63  FREERDP_LOCAL void free_surface_bits_command(rdpContext* context, SURFACE_BITS_COMMAND* order);
64 
65  WINPR_ATTR_MALLOC(free_surface_bits_command, 2)
66  FREERDP_LOCAL SURFACE_BITS_COMMAND*
67  copy_surface_bits_command(rdpContext* context, const SURFACE_BITS_COMMAND* order);
68 
69 #ifdef __cplusplus
70 }
71 #endif
72 
73 #endif /* FREERDP_LIB_CACHE_CACHE_H */