FreeRDP
Loading...
Searching...
No Matches
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#if defined(CHANNEL_RDPSND_SERVER)
45#include <freerdp/server/rdpsnd.h>
46#endif
47#if defined(CHANNEL_CLIPRDR_SERVER)
48#include <freerdp/server/cliprdr.h>
49#endif
50#if defined(CHANNEL_ECHO_SERVER)
51#include <freerdp/server/echo.h>
52#endif
53#if defined(CHANNEL_RDPDR_SERVER)
54#include <freerdp/server/rdpdr.h>
55#endif
56#if defined(CHANNEL_RDPEI_SERVER)
57#include <freerdp/server/rdpei.h>
58#endif
59#if defined(CHANNEL_DRDYNVC_SERVER)
60#include <freerdp/server/drdynvc.h>
61#endif
62#if defined(CHANNEL_REMDESK_SERVER)
63#include <freerdp/server/remdesk.h>
64#endif
65#if defined(CHANNEL_ENCOMSP_SERVER)
66#include <freerdp/server/encomsp.h>
67#endif
68#if defined(CHANNEL_RAIL_SERVER)
69#include <freerdp/server/rail.h>
70#endif
71#if defined(CHANNEL_TELEMETRY_SERVER)
72#include <freerdp/server/telemetry.h>
73#endif
74#if defined(CHANNEL_RDPGFX_SERVER)
75#include <freerdp/server/rdpgfx.h>
76#endif
77#if defined(CHANNEL_DISP_SERVER)
78#include <freerdp/server/disp.h>
79#endif
80
81#if defined(CHANNEL_RDPEMSC_SERVER)
82#include <freerdp/server/rdpemsc.h>
83#endif /* CHANNEL_RDPEMSC_SERVER */
84
85#if defined(CHANNEL_RDPECAM_SERVER)
86#include <freerdp/server/rdpecam-enumerator.h>
87#include <freerdp/server/rdpecam.h>
88#endif
89
90#if defined(CHANNEL_LOCATION_SERVER)
91#include <freerdp/server/location.h>
92#endif /* CHANNEL_LOCATION_SERVER */
93
94#ifdef WITH_CHANNEL_GFXREDIR
95#include <freerdp/server/gfxredir.h>
96#endif /* WITH_CHANNEL_GFXREDIR */
97
98#if defined(CHANNEL_AINPUT_SERVER)
99#include <freerdp/server/ainput.h>
100#endif
101
102extern void freerdp_channels_dummy(void);
103
104void freerdp_channels_dummy(void)
105{
106#if defined(CHANNEL_AUDIN_SERVER)
107 audin_server_context* audin = NULL;
108#endif
109#if defined(CHANNEL_RDPSND_SERVER)
110 RdpsndServerContext* rdpsnd = NULL;
111#endif
112#if defined(CHANNEL_CLIPRDR_SERVER)
113 CliprdrServerContext* cliprdr = NULL;
114#endif
115#if defined(CHANNEL_ECHO_SERVER)
116 echo_server_context* echo = NULL;
117#endif
118#if defined(CHANNEL_RDPDR_SERVER)
119 RdpdrServerContext* rdpdr = NULL;
120#endif
121#if defined(CHANNEL_DRDYNVC_SERVER)
122 DrdynvcServerContext* drdynvc = NULL;
123#endif
124#if defined(CHANNEL_RDPEI_SERVER)
125 RdpeiServerContext* rdpei = NULL;
126#endif
127#if defined(CHANNEL_REMDESK_SERVER)
128 RemdeskServerContext* remdesk = NULL;
129#endif
130#if defined(CHANNEL_ENCOMSP_SERVER)
131 EncomspServerContext* encomsp = NULL;
132#endif
133#if defined(CHANNEL_RAIL_SERVER)
134 RailServerContext* rail = NULL;
135#endif
136#if defined(CHANNEL_TELEMETRY_SERVER)
137 TelemetryServerContext* telemetry = NULL;
138#endif
139#if defined(CHANNEL_RDPGFX_SERVER)
140 RdpgfxServerContext* rdpgfx = NULL;
141#endif
142#if defined(CHANNEL_DISP_SERVER)
143 DispServerContext* disp = NULL;
144#endif
145#if defined(CHANNEL_RDPEMSC_SERVER)
146 MouseCursorServerContext* mouse_cursor = NULL;
147#endif /* CHANNEL_RDPEMSC_SERVER */
148#if defined(CHANNEL_RDPECAM_SERVER)
149 CamDevEnumServerContext* camera_enumerator = NULL;
150 CameraDeviceServerContext* camera_device = NULL;
151#endif
152#if defined(CHANNEL_LOCATION_SERVER)
153 LocationServerContext* location = NULL;
154#endif /* CHANNEL_LOCATION_SERVER */
155#ifdef WITH_CHANNEL_GFXREDIR
156 GfxRedirServerContext* gfxredir;
157#endif // WITH_CHANNEL_GFXREDIR
158#if defined(CHANNEL_AUDIN_SERVER)
159 audin = audin_server_context_new(NULL);
160#endif
161#if defined(CHANNEL_AUDIN_SERVER)
162 audin_server_context_free(audin);
163#endif
164#if defined(CHANNEL_RDPSND_SERVER)
165 rdpsnd = rdpsnd_server_context_new(NULL);
166 rdpsnd_server_context_free(rdpsnd);
167#endif
168#if defined(CHANNEL_CLIPRDR_SERVER)
169 cliprdr = cliprdr_server_context_new(NULL);
170 cliprdr_server_context_free(cliprdr);
171#endif
172#if defined(CHANNEL_ECHO_SERVER)
173 echo = echo_server_context_new(NULL);
174 echo_server_context_free(echo);
175#endif
176#if defined(CHANNEL_RDPDR_SERVER)
177 rdpdr = rdpdr_server_context_new(NULL);
178 rdpdr_server_context_free(rdpdr);
179#endif
180#if defined(CHANNEL_DRDYNVC_SERVER)
181 drdynvc = drdynvc_server_context_new(NULL);
182 drdynvc_server_context_free(drdynvc);
183#endif
184#if defined(CHANNEL_RDPEI_SERVER)
185 rdpei = rdpei_server_context_new(NULL);
186 rdpei_server_context_free(rdpei);
187#endif
188#if defined(CHANNEL_REMDESK_SERVER)
189 remdesk = remdesk_server_context_new(NULL);
190 remdesk_server_context_free(remdesk);
191#endif
192#if defined(CHANNEL_ENCOMSP_SERVER)
193 encomsp = encomsp_server_context_new(NULL);
194 encomsp_server_context_free(encomsp);
195#endif
196#if defined(CHANNEL_RAIL_SERVER)
197 rail = rail_server_context_new(NULL);
198 rail_server_context_free(rail);
199#endif
200#if defined(CHANNEL_TELEMETRY_SERVER)
201 telemetry = telemetry_server_context_new(NULL);
202 telemetry_server_context_free(telemetry);
203#endif
204#if defined(CHANNEL_RDPGFX_SERVER)
205 rdpgfx = rdpgfx_server_context_new(NULL);
206 rdpgfx_server_context_free(rdpgfx);
207#endif
208#if defined(CHANNEL_DISP_SERVER)
209 disp = disp_server_context_new(NULL);
210 disp_server_context_free(disp);
211#endif
212#if defined(CHANNEL_RDPEMSC_SERVER)
213 mouse_cursor = mouse_cursor_server_context_new(NULL);
214 mouse_cursor_server_context_free(mouse_cursor);
215#endif /* CHANNEL_RDPEMSC_SERVER */
216
217#if defined(CHANNEL_RDPECAM_SERVER)
218 camera_enumerator = cam_dev_enum_server_context_new(NULL);
219 cam_dev_enum_server_context_free(camera_enumerator);
220 camera_device = camera_device_server_context_new(NULL);
221 camera_device_server_context_free(camera_device);
222#endif
223
224#if defined(CHANNEL_LOCATION_SERVER)
225 location = location_server_context_new(NULL);
226 location_server_context_free(location);
227#endif /* CHANNEL_LOCATION_SERVER */
228
229#ifdef WITH_CHANNEL_GFXREDIR
230 gfxredir = gfxredir_server_context_new(NULL);
231 gfxredir_server_context_free(gfxredir);
232#endif // WITH_CHANNEL_GFXREDIR
233#if defined(CHANNEL_AINPUT_SERVER)
234 {
235 ainput_server_context* ainput = ainput_server_context_new(NULL);
236 ainput_server_context_free(ainput);
237 }
238#endif
239}
240