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 FREERDP_LOCAL void free_pointer_color_update(rdpContext* context,
51 POINTER_COLOR_UPDATE* pointer);
52
53 WINPR_ATTR_MALLOC(free_pointer_color_update, 1)
54 FREERDP_LOCAL POINTER_COLOR_UPDATE*
55 copy_pointer_color_update(rdpContext* context, const POINTER_COLOR_UPDATE* pointer);
56
57 FREERDP_LOCAL void free_pointer_large_update(rdpContext* context,
58 POINTER_LARGE_UPDATE* pointer);
59
60 WINPR_ATTR_MALLOC(free_pointer_large_update, 1)
61 FREERDP_LOCAL POINTER_LARGE_UPDATE*
62 copy_pointer_large_update(rdpContext* context, const POINTER_LARGE_UPDATE* pointer);
63
64 FREERDP_LOCAL void free_pointer_new_update(rdpContext* context, POINTER_NEW_UPDATE* pointer);
65
66 WINPR_ATTR_MALLOC(free_pointer_new_update, 1)
67 FREERDP_LOCAL POINTER_NEW_UPDATE* copy_pointer_new_update(rdpContext* context,
68 const POINTER_NEW_UPDATE* pointer);
69
70 FREERDP_LOCAL void free_pointer_cached_update(rdpContext* context,
71 POINTER_CACHED_UPDATE* pointer);
72
73 WINPR_ATTR_MALLOC(free_pointer_cached_update, 1)
74 FREERDP_LOCAL POINTER_CACHED_UPDATE*
75 copy_pointer_cached_update(rdpContext* context, const POINTER_CACHED_UPDATE* pointer);
76
77 FREERDP_LOCAL void free_pointer_position_update(rdpContext* context,
79
80 WINPR_ATTR_MALLOC(free_pointer_position_update, 1)
81 FREERDP_LOCAL POINTER_POSITION_UPDATE*
82 copy_pointer_position_update(rdpContext* context, const POINTER_POSITION_UPDATE* pointer);
83
84 FREERDP_LOCAL void free_pointer_system_update(rdpContext* context,
85 POINTER_SYSTEM_UPDATE* pointer);
86
87 WINPR_ATTR_MALLOC(free_pointer_system_update, 1)
88 FREERDP_LOCAL POINTER_SYSTEM_UPDATE*
89 copy_pointer_system_update(rdpContext* context, const POINTER_SYSTEM_UPDATE* pointer);
90
91#ifdef __cplusplus
92}
93#endif
94
95#endif /* FREERDP_LIB_CACHE_POINTER_H */