FreeRDP
mac_shadow.h
1 
19 #ifndef FREERDP_SERVER_SHADOW_MAC_SHADOW_H
20 #define FREERDP_SERVER_SHADOW_MAC_SHADOW_H
21 
22 #include <freerdp/server/shadow.h>
23 
24 typedef struct mac_shadow_subsystem macShadowSubsystem;
25 
26 #include <winpr/crt.h>
27 #include <winpr/synch.h>
28 #include <winpr/thread.h>
29 #include <winpr/stream.h>
30 #include <winpr/collections.h>
31 
32 #include <dispatch/dispatch.h>
33 #include <IOKit/IOKitLib.h>
34 #include <IOSurface/IOSurface.h>
35 #include <CoreVideo/CoreVideo.h>
36 #include <CoreGraphics/CoreGraphics.h>
37 
39 {
40  rdpShadowSubsystem common;
41 
42  int width;
43  int height;
44  BOOL retina;
45  int pixelWidth;
46  int pixelHeight;
47  BOOL mouseDownLeft;
48  BOOL mouseDownRight;
49  BOOL mouseDownOther;
50  CGDisplayStreamRef stream;
51  dispatch_queue_t captureQueue;
52  CGDisplayStreamUpdateRef lastUpdate;
53 };
54 
55 #ifdef __cplusplus
56 extern "C"
57 {
58 #endif
59 
60 #ifdef __cplusplus
61 }
62 #endif
63 
64 #endif /* FREERDP_SERVER_SHADOW_MAC_SHADOW_H */