FreeRDP
mf_interface.h
1 
21 #ifndef FREERDP_SERVER_MAC_INTERFACE_H
22 #define FREERDP_SERVER_MAC_INTERFACE_H
23 
24 #include <pthread.h>
25 
26 #include <freerdp/config.h>
27 #include <freerdp/codec/rfx.h>
28 #include <freerdp/codec/nsc.h>
29 #include <freerdp/listener.h>
30 #include <freerdp/freerdp.h>
31 
32 #include <winpr/crt.h>
33 
34 #ifdef WITH_SERVER_CHANNELS
35 #include <freerdp/channels/wtsvc.h>
36 #endif
37 
38 #ifdef CHANNEL_RDPSND_SERVER
39 #include <freerdp/server/rdpsnd.h>
40 #include "mf_rdpsnd.h"
41 #endif
42 
43 #ifdef CHANNEL_AUDIN_SERVER
44 #include <freerdp/server/audin.h>
45 #include "mf_audin.h"
46 #endif
47 
48 #include "mf_types.h"
49 
51 {
52  rdpContext _p;
53 
54  mfInfo* info;
55  wStream* s;
56  BOOL activated;
57  UINT32 frame_id;
58  BOOL audin_open;
59  RFX_CONTEXT* rfx_context;
60  NSC_CONTEXT* nsc_context;
61 
62 #ifdef WITH_SERVER_CHANNELS
63  HANDLE vcm;
64 #endif
65 
66 #ifdef CHANNEL_AUDIN_SERVER
67  audin_server_context* audin;
68 #endif
69 
70 #ifdef CHANNEL_RDPSND_SERVER
71  RdpsndServerContext* rdpsnd;
72 #endif
73 };
74 
75 struct mf_info
76 {
77  // STREAM* s;
78 
79  // screen and monitor info
80  UINT32 screenID;
81  UINT32 virtscreen_width;
82  UINT32 virtscreen_height;
83  UINT32 servscreen_width;
84  UINT32 servscreen_height;
85  UINT32 servscreen_xoffset;
86  UINT32 servscreen_yoffset;
87 
88  int bitsPerPixel;
89  int peerCount;
90  int activePeerCount;
91  int framesPerSecond;
92  freerdp_peer** peers;
93  unsigned int framesWaiting;
94  UINT32 scale;
95 
96  RFX_RECT invalid;
97  pthread_mutex_t mutex;
98 
99  BOOL mouse_down_left;
100  BOOL mouse_down_right;
101  BOOL mouse_down_other;
102  BOOL input_disabled;
103  BOOL force_all_disconnect;
104 };
105 
106 #endif /* FREERDP_SERVER_MAC_INTERFACE_H */
Definition: rfx.h:44