FreeRDP
channels/server/channels.c
1 
21 #include <freerdp/config.h>
22 
23 #include <stdio.h>
24 #include <stdlib.h>
25 #include <string.h>
26 
27 #include <freerdp/constants.h>
28 #include <freerdp/server/channels.h>
29 
30 #include <winpr/crt.h>
31 #include <winpr/synch.h>
32 #include <winpr/stream.h>
33 
34 #include "channels.h"
35 
41 #if defined(CHANNEL_AUDIN_SERVER)
42 #include <freerdp/server/audin.h>
43 #endif
44 #include <freerdp/server/rdpsnd.h>
45 #include <freerdp/server/cliprdr.h>
46 #include <freerdp/server/echo.h>
47 #include <freerdp/server/rdpdr.h>
48 #if defined(CHANNEL_RAIL_SERVER)
49 #include <freerdp/server/rdpei.h>
50 #endif
51 #include <freerdp/server/drdynvc.h>
52 #include <freerdp/server/remdesk.h>
53 #include <freerdp/server/encomsp.h>
54 #if defined(CHANNEL_RAIL_SERVER)
55 #include <freerdp/server/rail.h>
56 #endif
57 #include <freerdp/server/telemetry.h>
58 #if defined(CHANNEL_RDPGFX_SERVER)
59 #include <freerdp/server/rdpgfx.h>
60 #endif
61 #if defined(CHANNEL_DISP_SERVER)
62 #include <freerdp/server/disp.h>
63 #endif
64 
65 #if defined(CHANNEL_RDPEMSC_SERVER)
66 #include <freerdp/server/rdpemsc.h>
67 #endif /* CHANNEL_RDPEMSC_SERVER */
68 
69 #if defined(CHANNEL_RDPECAM_SERVER)
70 #include <freerdp/server/rdpecam-enumerator.h>
71 #include <freerdp/server/rdpecam.h>
72 #endif
73 
74 #if defined(CHANNEL_LOCATION_SERVER)
75 #include <freerdp/server/location.h>
76 #endif /* CHANNEL_LOCATION_SERVER */
77 
78 #ifdef WITH_CHANNEL_GFXREDIR
79 #include <freerdp/server/gfxredir.h>
80 #endif /* WITH_CHANNEL_GFXREDIR */
81 
82 #if defined(CHANNEL_AINPUT_SERVER)
83 #include <freerdp/server/ainput.h>
84 #endif
85 
86 extern void freerdp_channels_dummy(void);
87 
88 void freerdp_channels_dummy(void)
89 {
90 #if defined(CHANNEL_AUDIN_SERVER)
91  audin_server_context* audin = NULL;
92 #endif
93  RdpsndServerContext* rdpsnd = NULL;
94  CliprdrServerContext* cliprdr = NULL;
95  echo_server_context* echo = NULL;
96  RdpdrServerContext* rdpdr = NULL;
97  DrdynvcServerContext* drdynvc = NULL;
98 #if defined(CHANNEL_RDPEI_SERVER)
99  RdpeiServerContext* rdpei = NULL;
100 #endif
101  RemdeskServerContext* remdesk = NULL;
102  EncomspServerContext* encomsp = NULL;
103 #if defined(CHANNEL_RAIL_SERVER)
104  RailServerContext* rail = NULL;
105 #endif
106  TelemetryServerContext* telemetry = NULL;
107 #if defined(CHANNEL_RDPGFX_SERVER)
108  RdpgfxServerContext* rdpgfx = NULL;
109 #endif
110 #if defined(CHANNEL_DISP_SERVER)
111  DispServerContext* disp = NULL;
112 #endif
113 #if defined(CHANNEL_RDPEMSC_SERVER)
114  MouseCursorServerContext* mouse_cursor = NULL;
115 #endif /* CHANNEL_RDPEMSC_SERVER */
116 #if defined(CHANNEL_RDPECAM_SERVER)
117  CamDevEnumServerContext* camera_enumerator = NULL;
118  CameraDeviceServerContext* camera_device = NULL;
119 #endif
120 #if defined(CHANNEL_LOCATION_SERVER)
121  LocationServerContext* location = NULL;
122 #endif /* CHANNEL_LOCATION_SERVER */
123 #ifdef WITH_CHANNEL_GFXREDIR
124  GfxRedirServerContext* gfxredir;
125 #endif // WITH_CHANNEL_GFXREDIR
126 #if defined(CHANNEL_AUDIN_SERVER)
127  audin = audin_server_context_new(NULL);
128 #endif
129 #if defined(CHANNEL_AUDIN_SERVER)
130  audin_server_context_free(audin);
131 #endif
132  rdpsnd = rdpsnd_server_context_new(NULL);
133  rdpsnd_server_context_free(rdpsnd);
134  cliprdr = cliprdr_server_context_new(NULL);
135  cliprdr_server_context_free(cliprdr);
136  echo = echo_server_context_new(NULL);
137  echo_server_context_free(echo);
138  rdpdr = rdpdr_server_context_new(NULL);
139  rdpdr_server_context_free(rdpdr);
140  drdynvc = drdynvc_server_context_new(NULL);
141  drdynvc_server_context_free(drdynvc);
142 #if defined(CHANNEL_RDPEI_SERVER)
143  rdpei = rdpei_server_context_new(NULL);
144  rdpei_server_context_free(rdpei);
145 #endif
146  remdesk = remdesk_server_context_new(NULL);
147  remdesk_server_context_free(remdesk);
148  encomsp = encomsp_server_context_new(NULL);
149  encomsp_server_context_free(encomsp);
150 #if defined(CHANNEL_RAIL_SERVER)
151  rail = rail_server_context_new(NULL);
152  rail_server_context_free(rail);
153 #endif
154  telemetry = telemetry_server_context_new(NULL);
155  telemetry_server_context_free(telemetry);
156 #if defined(CHANNEL_RDPGFX_SERVER)
157  rdpgfx = rdpgfx_server_context_new(NULL);
158  rdpgfx_server_context_free(rdpgfx);
159 #endif
160 #if defined(CHANNEL_DISP_SERVER)
161  disp = disp_server_context_new(NULL);
162  disp_server_context_free(disp);
163 #endif
164 #if defined(CHANNEL_RDPEMSC_SERVER)
165  mouse_cursor = mouse_cursor_server_context_new(NULL);
166  mouse_cursor_server_context_free(mouse_cursor);
167 #endif /* CHANNEL_RDPEMSC_SERVER */
168 
169 #if defined(CHANNEL_RDPECAM_SERVER)
170  camera_enumerator = cam_dev_enum_server_context_new(NULL);
171  cam_dev_enum_server_context_free(camera_enumerator);
172  camera_device = camera_device_server_context_new(NULL);
173  camera_device_server_context_free(camera_device);
174 #endif
175 
176 #if defined(CHANNEL_LOCATION_SERVER)
177  location = location_server_context_new(NULL);
178  location_server_context_free(location);
179 #endif /* CHANNEL_LOCATION_SERVER */
180 
181 #ifdef WITH_CHANNEL_GFXREDIR
182  gfxredir = gfxredir_server_context_new(NULL);
183  gfxredir_server_context_free(gfxredir);
184 #endif // WITH_CHANNEL_GFXREDIR
185 #if defined(CHANNEL_AINPUT_SERVER)
186  {
187  ainput_server_context* ainput = ainput_server_context_new(NULL);
188  ainput_server_context_free(ainput);
189  }
190 #endif
191 }
192