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 WINPR_ATTR_NODISCARD
54 FREERDP_LOCAL rdpPaletteCache* palette_cache_new(rdpContext* context);
55
56 FREERDP_LOCAL void free_palette_update(rdpContext* context, PALETTE_UPDATE* pointer);
57
58 WINPR_ATTR_MALLOC(free_palette_update, 2)
59 WINPR_ATTR_NODISCARD
60 FREERDP_LOCAL PALETTE_UPDATE* copy_palette_update(rdpContext* context,
61 const PALETTE_UPDATE* pointer);
62
63#ifdef __cplusplus
64}
65#endif
66
67#endif /* FREERDP_LIB_CACHE_PALETTE_H */
Definition palette.h:29