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 WINPR_ATTR_NODISCARD
49 FREERDP_LOCAL rdpPointerCache* pointer_cache_new(rdpContext* context);
50
51 FREERDP_LOCAL void free_pointer_color_update(rdpContext* context,
52 POINTER_COLOR_UPDATE* pointer);
53
54 WINPR_ATTR_MALLOC(free_pointer_color_update, 1)
55 WINPR_ATTR_NODISCARD
56 FREERDP_LOCAL POINTER_COLOR_UPDATE*
57 copy_pointer_color_update(rdpContext* context, const POINTER_COLOR_UPDATE* pointer);
58
59 FREERDP_LOCAL void free_pointer_large_update(rdpContext* context,
60 POINTER_LARGE_UPDATE* pointer);
61
62 WINPR_ATTR_MALLOC(free_pointer_large_update, 1)
63 WINPR_ATTR_NODISCARD
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 WINPR_ATTR_NODISCARD
71 FREERDP_LOCAL POINTER_NEW_UPDATE* copy_pointer_new_update(rdpContext* context,
72 const POINTER_NEW_UPDATE* pointer);
73
74 FREERDP_LOCAL void free_pointer_cached_update(rdpContext* context,
75 POINTER_CACHED_UPDATE* pointer);
76
77 WINPR_ATTR_MALLOC(free_pointer_cached_update, 1)
78 WINPR_ATTR_NODISCARD
79 FREERDP_LOCAL POINTER_CACHED_UPDATE*
80 copy_pointer_cached_update(rdpContext* context, const POINTER_CACHED_UPDATE* pointer);
81
82 FREERDP_LOCAL void free_pointer_position_update(rdpContext* context,
84
85 WINPR_ATTR_MALLOC(free_pointer_position_update, 1)
86 WINPR_ATTR_NODISCARD
87 FREERDP_LOCAL POINTER_POSITION_UPDATE*
88 copy_pointer_position_update(rdpContext* context, const POINTER_POSITION_UPDATE* pointer);
89
90 FREERDP_LOCAL void free_pointer_system_update(rdpContext* context,
91 POINTER_SYSTEM_UPDATE* pointer);
92
93 WINPR_ATTR_MALLOC(free_pointer_system_update, 1)
94 WINPR_ATTR_NODISCARD
95 FREERDP_LOCAL POINTER_SYSTEM_UPDATE*
96 copy_pointer_system_update(rdpContext* context, const POINTER_SYSTEM_UPDATE* pointer);
97
98#ifdef __cplusplus
99}
100#endif
101
102#endif /* FREERDP_LIB_CACHE_POINTER_H */