FreeRDP
Loading...
Searching...
No Matches
palette.h
1
20#ifndef FREERDP_LIB_CACHE_PALETTE_H
21#define FREERDP_LIB_CACHE_PALETTE_H
22
23#include <freerdp/api.h>
24#include <freerdp/update.h>
25
26typedef struct rdp_palette_cache rdpPaletteCache;
27
28typedef struct
29{
30 void* entry;
32
34{
35 UINT32 maxEntries; /* 0 */
36 PALETTE_TABLE_ENTRY* entries; /* 1 */
37
38 /* internal */
39
40 rdpContext* context;
41};
42
43#ifdef __cplusplus
44extern "C"
45{
46#endif
47
48 FREERDP_LOCAL void palette_cache_register_callbacks(rdpUpdate* update);
49
50 FREERDP_LOCAL void palette_cache_free(rdpPaletteCache* palette_cache);
51
52 WINPR_ATTR_MALLOC(palette_cache_free, 1)
53 FREERDP_LOCAL rdpPaletteCache* palette_cache_new(rdpContext* context);
54
55 FREERDP_LOCAL void free_palette_update(rdpContext* context, PALETTE_UPDATE* pointer);
56
57 WINPR_ATTR_MALLOC(free_palette_update, 2)
58 FREERDP_LOCAL PALETTE_UPDATE* copy_palette_update(rdpContext* context,
59 const PALETTE_UPDATE* pointer);
60
61#ifdef __cplusplus
62}
63#endif
64
65#endif /* FREERDP_LIB_CACHE_PALETTE_H */
Definition palette.h:29