21 #include <freerdp/config.h>
27 #include <freerdp/constants.h>
28 #include <freerdp/server/channels.h>
30 #include <winpr/crt.h>
31 #include <winpr/synch.h>
32 #include <winpr/stream.h>
41 #if defined(CHANNEL_AUDIN_SERVER)
42 #include <freerdp/server/audin.h>
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>
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>
57 #include <freerdp/server/telemetry.h>
58 #if defined(CHANNEL_RDPGFX_SERVER)
59 #include <freerdp/server/rdpgfx.h>
61 #if defined(CHANNEL_DISP_SERVER)
62 #include <freerdp/server/disp.h>
65 #if defined(CHANNEL_RDPEMSC_SERVER)
66 #include <freerdp/server/rdpemsc.h>
69 #if defined(CHANNEL_RDPECAM_SERVER)
70 #include <freerdp/server/rdpecam-enumerator.h>
71 #include <freerdp/server/rdpecam.h>
74 #if defined(CHANNEL_LOCATION_SERVER)
75 #include <freerdp/server/location.h>
78 #ifdef WITH_CHANNEL_GFXREDIR
79 #include <freerdp/server/gfxredir.h>
82 #if defined(CHANNEL_AINPUT_SERVER)
83 #include <freerdp/server/ainput.h>
86 extern void freerdp_channels_dummy(
void);
88 void freerdp_channels_dummy(
void)
90 #if defined(CHANNEL_AUDIN_SERVER)
91 audin_server_context* audin = NULL;
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;
101 RemdeskServerContext* remdesk = NULL;
102 EncomspServerContext* encomsp = NULL;
103 #if defined(CHANNEL_RAIL_SERVER)
104 RailServerContext* rail = NULL;
106 TelemetryServerContext* telemetry = NULL;
107 #if defined(CHANNEL_RDPGFX_SERVER)
108 RdpgfxServerContext* rdpgfx = NULL;
110 #if defined(CHANNEL_DISP_SERVER)
111 DispServerContext* disp = NULL;
113 #if defined(CHANNEL_RDPEMSC_SERVER)
114 MouseCursorServerContext* mouse_cursor = NULL;
116 #if defined(CHANNEL_RDPECAM_SERVER)
117 CamDevEnumServerContext* camera_enumerator = NULL;
118 CameraDeviceServerContext* camera_device = NULL;
120 #if defined(CHANNEL_LOCATION_SERVER)
121 LocationServerContext* location = NULL;
123 #ifdef WITH_CHANNEL_GFXREDIR
124 GfxRedirServerContext* gfxredir;
126 #if defined(CHANNEL_AUDIN_SERVER)
127 audin = audin_server_context_new(NULL);
129 #if defined(CHANNEL_AUDIN_SERVER)
130 audin_server_context_free(audin);
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);
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);
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);
160 #if defined(CHANNEL_DISP_SERVER)
161 disp = disp_server_context_new(NULL);
162 disp_server_context_free(disp);
164 #if defined(CHANNEL_RDPEMSC_SERVER)
165 mouse_cursor = mouse_cursor_server_context_new(NULL);
166 mouse_cursor_server_context_free(mouse_cursor);
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);
176 #if defined(CHANNEL_LOCATION_SERVER)
177 location = location_server_context_new(NULL);
178 location_server_context_free(location);
181 #ifdef WITH_CHANNEL_GFXREDIR
182 gfxredir = gfxredir_server_context_new(NULL);
183 gfxredir_server_context_free(gfxredir);
185 #if defined(CHANNEL_AINPUT_SERVER)
187 ainput_server_context* ainput = ainput_server_context_new(NULL);
188 ainput_server_context_free(ainput);