FreeRDP
Loading...
Searching...
No Matches
libfreerdp/cache/pointer.h
1
20#ifndef FREERDP_LIB_CACHE_POINTER_H
21#define FREERDP_LIB_CACHE_POINTER_H
22
23#include <freerdp/api.h>
24#include <freerdp/freerdp.h>
25#include <freerdp/pointer.h>
26
27typedef struct rdp_pointer_cache rdpPointerCache;
28
30{
31 UINT32 cacheSize; /* 0 */
32 rdpPointer** entries; /* 1 */
33
34 /* internal */
35 rdpContext* context;
36};
37
38#ifdef __cplusplus
39extern "C"
40{
41#endif
42
43 FREERDP_LOCAL void pointer_cache_register_callbacks(rdpUpdate* update);
44
45 FREERDP_LOCAL void pointer_cache_free(rdpPointerCache* pointer_cache);
46
47 WINPR_ATTR_MALLOC(pointer_cache_free, 1)
48 FREERDP_LOCAL rdpPointerCache* pointer_cache_new(rdpContext* context);
49
50 WINPR_ATTR_NODISCARD
51 FREERDP_LOCAL BOOL pointer_cache_resize(rdpPointerCache* pointerCache);
52
53 FREERDP_LOCAL void free_pointer_color_update(rdpContext* context,
54 POINTER_COLOR_UPDATE* pointer);
55
56 WINPR_ATTR_MALLOC(free_pointer_color_update, 1)
57 FREERDP_LOCAL POINTER_COLOR_UPDATE*
58 copy_pointer_color_update(rdpContext* context, const POINTER_COLOR_UPDATE* pointer);
59
60 FREERDP_LOCAL void free_pointer_large_update(rdpContext* context,
61 POINTER_LARGE_UPDATE* pointer);
62
63 WINPR_ATTR_MALLOC(free_pointer_large_update, 1)
64 FREERDP_LOCAL POINTER_LARGE_UPDATE*
65 copy_pointer_large_update(rdpContext* context, const POINTER_LARGE_UPDATE* pointer);
66
67 FREERDP_LOCAL void free_pointer_new_update(rdpContext* context, POINTER_NEW_UPDATE* pointer);
68
69 WINPR_ATTR_MALLOC(free_pointer_new_update, 1)
70 FREERDP_LOCAL POINTER_NEW_UPDATE* copy_pointer_new_update(rdpContext* context,
71 const POINTER_NEW_UPDATE* pointer);
72
73 FREERDP_LOCAL void free_pointer_cached_update(rdpContext* context,
74 POINTER_CACHED_UPDATE* pointer);
75
76 WINPR_ATTR_MALLOC(free_pointer_cached_update, 1)
77 FREERDP_LOCAL POINTER_CACHED_UPDATE*
78 copy_pointer_cached_update(rdpContext* context, const POINTER_CACHED_UPDATE* pointer);
79
80 FREERDP_LOCAL void free_pointer_position_update(rdpContext* context,
82
83 WINPR_ATTR_MALLOC(free_pointer_position_update, 1)
84 FREERDP_LOCAL POINTER_POSITION_UPDATE*
85 copy_pointer_position_update(rdpContext* context, const POINTER_POSITION_UPDATE* pointer);
86
87 FREERDP_LOCAL void free_pointer_system_update(rdpContext* context,
88 POINTER_SYSTEM_UPDATE* pointer);
89
90 WINPR_ATTR_MALLOC(free_pointer_system_update, 1)
91 FREERDP_LOCAL POINTER_SYSTEM_UPDATE*
92 copy_pointer_system_update(rdpContext* context, const POINTER_SYSTEM_UPDATE* pointer);
93
94#ifdef __cplusplus
95}
96#endif
97
98#endif /* FREERDP_LIB_CACHE_POINTER_H */