]> git.sesse.net Git - vlc/blob - src/missing.c
44495be5b4ad162dad2c242ec945736bbaf05fba
[vlc] / src / missing.c
1 /*****************************************************************************
2  * missing.c: missing libvlccore symbols
3  *****************************************************************************
4  * Copyright (C) 2008 RĂ©mi Denis-Courmont
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
19  *****************************************************************************/
20
21 /** \file
22  * This file contains dummy replacement API for disabled features
23  */
24
25 #ifdef HAVE_CONFIG_H
26 # include "config.h"
27 #endif
28
29 #include <vlc_common.h>
30 #include <assert.h>
31
32 #ifndef ENABLE_HTTPD
33 # include <vlc_httpd.h>
34
35 char *httpd_ClientIP (const httpd_client_t *cl, char *psz_ip)
36 {
37     assert (0);
38 }
39
40 void httpd_ClientModeBidir (httpd_client_t *cl)
41 {
42     assert (0);
43 }
44
45 void httpd_ClientModeStream (httpd_client_t *cl)
46 {
47     assert (0);
48 }
49
50 httpd_file_sys_t *httpd_FileDelete (httpd_file_t *file)
51 {
52     assert (0);
53 }
54
55 httpd_file_t *httpd_FileNew (httpd_host_t *host,
56                              const char *url, const char *content_type,
57                              const char *login, const char *password,
58                              const vlc_acl_t *acl,
59                              httpd_file_callback_t cb, httpd_file_sys_t *data)
60 {
61     assert (0);
62 }
63
64 httpd_handler_sys_t *httpd_HandlerDelete (httpd_handler_t *handler)
65 {
66     assert (0);
67 }
68
69 httpd_handler_t *httpd_HandlerNew (httpd_host_t *host, const char *url,
70                                    const char *login, const char *password,
71                                    const vlc_acl_t *acl,
72                                    httpd_handler_callback_t cb,
73                                    httpd_handler_sys_t *data)
74 {
75     assert (0);
76 }
77
78 void httpd_HostDelete (httpd_host_t *h)
79 {
80     assert (0);
81 }
82
83 httpd_host_t *httpd_HostNew (vlc_object_t *obj, const char *host, int port)
84 {
85     return httpd_TLSHostNew (obj, host, port, NULL, NULL, NULL, NULL);
86 }
87
88 void httpd_MsgAdd (httpd_message_t *m, const char *name, const char *fmt, ...)
89 {
90     assert (0);
91 }
92
93 const char *httpd_MsgGet (const httpd_message_t *m, const char *name)
94 {
95     assert (0);
96 }
97
98 void httpd_RedirectDelete (httpd_redirect_t *r)
99 {
100     assert (0);
101 }
102
103 httpd_redirect_t *httpd_RedirectNew (httpd_host_t *host,
104                                      const char *dst, const char *src)
105 {
106     assert (0);
107 }
108
109 char *httpd_ServerIP (const httpd_client_t *client, char *ip)
110 {
111     assert (0);
112 }
113
114 void httpd_StreamDelete (httpd_stream_t *stream)
115 {
116     assert (0);
117 }
118
119 int httpd_StreamHeader (httpd_stream_t *stream, uint8_t *data, int count)
120 {
121     assert (0);
122 }
123
124 httpd_stream_t *httpd_StreamNew (httpd_host_t *host,
125                                  const char *url, const char *content_type,
126                                  const char *login, const char *password,
127                                  const vlc_acl_t *acl)
128 {
129     assert (0);
130 }
131
132 int httpd_StreamSend (httpd_stream_t *stream, uint8_t *data, int count)
133 {
134     assert (0);
135 }
136
137 httpd_host_t *httpd_TLSHostNew (vlc_object_t *obj, const char *host, int port,
138                                 const char *cert, const char *key,
139                                 const char *ca, const char *crl)
140 {
141      msg_Err (obj, "VLC httpd support not compiled-in!");
142      return NULL;
143 }
144
145 int httpd_UrlCatch (httpd_url_t *url, int request, httpd_callback_t cb,
146                     httpd_callback_sys_t *data)
147 {
148     assert (0);
149 }
150
151 void httpd_UrlDelete (httpd_url_t *url)
152 {
153     assert (0);
154 }
155
156 httpd_url_t *httpd_UrlNew (httpd_host_t *host, const char *url,
157                            const char *login, const char *password,
158                            const vlc_acl_t *acl)
159 {
160     assert (0);
161 }
162
163 httpd_url_t *httpd_UrlNewUnique (httpd_host_t *host, const char *url,
164                                  const char *login, const char *password,
165                                  const vlc_acl_t *acl)
166 {
167     assert (0);
168 }
169 #endif /* !ENABLE_HTTPD */
170
171 #ifndef ENABLE_SOUT
172 # include <vlc_sout.h>
173
174 char *sdp_AddMedia (char **sdp, const char *type, const char *protocol,
175                     int dport, unsigned pt, bool bw_indep, unsigned bw,
176                     const char *ptname, unsigned clockrate, unsigned channels,
177                     const char *fmtp)
178 {
179     assert (*sdp == NULL);
180     return NULL;
181 }
182
183 char *sdp_AddAttribute (char **sdp, const char *name, const char *fmt, ...)
184 {
185     assert (*sdp == NULL);
186     return NULL;
187 }
188
189 int sout_AccessOutControl (sout_access_out_t *out, int query, ...)
190 {
191     assert (0);
192 }
193
194 void sout_AccessOutDelete (sout_access_out_t *out)
195 {
196     assert (0);
197 }
198
199 #undef sout_AccessOutNew
200 sout_access_out_t *sout_AccessOutNew (vlc_object_t *obj,
201                                       const char *access, const char *name)
202 {
203     msg_Err (obj, "Output support not compiled-in!");
204     return NULL;
205 }
206
207 ssize_t sout_AccessOutRead (sout_access_out_t *out, block_t *block)
208 {
209     assert (0);
210 }
211
212 int sout_AccessOutSeek (sout_access_out_t *out, off_t offset)
213 {
214     assert (0);
215 }
216
217 ssize_t sout_AccessOutWrite (sout_access_out_t *out, block_t *block)
218 {
219     assert (0);
220 }
221
222 #undef sout_AnnounceRegisterSDP
223 session_descriptor_t *sout_AnnounceRegisterSDP (vlc_object_t *obj,
224                                                 const char *sdp,
225                                                 const char *dst,
226                                                 announce_method_t *method)
227 {
228     msg_Err (obj, "SDP export not compiled-in!");
229     assert (method == NULL);
230     return NULL;
231 }
232
233 #undef sout_AnnounceUnRegister
234 sout_AnnounceUnRegister (vlc_object_t *obj, session_descriptor_t *d)
235 {
236     assert (0);
237 }
238
239 #undef sout_EncoderCreate
240 encoder_t *sout_EncoderCreate( vlc_object_t *p_this )
241 {
242     msg_Err (p_this, "Encoding support not compiled-in!");
243     return NULL;
244 }
245
246 void sout_MethodRelease (announce_method_t *method)
247 {
248     (void)method;
249 }
250
251 sout_input_t *sout_MuxAddStream (sout_mux_t *mux, es_format_t *fmt)
252 {
253     assert (0);
254 }
255
256 void sout_MuxDelete (sout_mux_t *mux)
257 {
258     assert (0);
259 }
260
261 void sout_MuxDeleteStream (sout_mux_t *mux, sout_input_t *input)
262 {
263     assert (0);
264 }
265
266 sout_mux_t *sout_MuxNew (sout_instance_t *instance, char *mux,
267                          sout_access_out_t *out)
268 {
269     assert (0);
270 }
271
272 void sout_MuxSendBuffer (sout_mux_t *mux, sout_input_t *input, block_t *block)
273 {
274     assert (0);
275 }
276
277 announce_method_t *sout_SAPMethod (void)
278 {
279     return NULL;
280 }
281
282 void sout_StreamDelete (sout_stream_t *stream)
283 {
284     assert (0);
285 }
286
287 sout_stream_t *sout_StreamNew (sout_instance_t *instance, char *chain)
288 {
289     assert (0);
290 }
291
292 void sout_UpdateStatistic (sout_instance_t *instance, sout_statistic_t stat,
293                            int value)
294 {
295     assert (0);
296 }
297
298 char *vlc_sdp_Start (vlc_object_t *obj, const char *cfg,
299                      const struct sockaddr *src, size_t srclen,
300                      const struct sockaddr *addr, size_t addrlen)
301 {
302     return NULL;
303 }
304 #endif /* !ENABLE_SOUT */
305
306 #ifndef ENABLE_VLM
307 # include <vlc_vlm.h>
308
309 int vlm_Control (vlm_t *vlm, int query, ...)
310 {
311     assert (0);
312 }
313
314 void vlm_Delete (vlm_t *vlm)
315 {
316     assert (0);
317 }
318
319 int vlm_ExecuteCommand (vlm_t *vlm, const char *cmd, vlm_message_t **pm)
320 {
321     assert (0);
322 }
323
324 vlm_message_t *vlm_MessageAdd (vlm_message_t *a, vlm_message_t *b)
325 {
326     assert (0);
327 }
328
329 void vlm_MessageDelete (vlm_message_t *m)
330 {
331     assert (0);
332 }
333
334 vlm_message_t *vlm_MessageNew (const char *a, const char *fmt, ...)
335 {
336     return NULL;
337 }
338
339 vlm_t *__vlm_New (vlc_object_t *obj)
340 {
341      msg_Err (obj, "VLM not compiled-in!");
342      return NULL;
343 }
344 #endif /* !ENABLE_VLM */