]> git.sesse.net Git - vlc/blob - src/missing.c
src/missing: fix a bunch of clang compilation warnings and update copyright header
[vlc] / src / missing.c
1 /*****************************************************************************
2  * missing.c: missing libvlccore symbols
3  *****************************************************************************
4  * Copyright (C) 2008-2011 Rémi Denis-Courmont
5  * Copyright (C) 2009-2014 VLC authors and VideoLAN
6  * $Id$
7  *
8  * Authors: Rémi Denis-Courmont <rem # videolan : org>
9  *          Pierre Ynard <linkfanel # yahoo fr>
10  *          Toralf Niebuhr <gmthor85 # aim com>
11  *          Felix Paul Kühne <fkuehne # videolan org>
12  *          Jean-Paul Saman <jpsaman # videolan org>
13  *          Antoine Cellerier <dionoea # videolan org>
14  *
15  * This program is free software; you can redistribute it and/or modify it
16  * under the terms of the GNU Lesser General Public License as published by
17  * the Free Software Foundation; either version 2.1 of the License, or
18  * (at your option) any later version.
19  *
20  * This program is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23  * GNU Lesser General Public License for more details.
24  *
25  * You should have received a copy of the GNU Lesser General Public License
26  * along with this program; if not, write to the Free Software Foundation,
27  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
28  *****************************************************************************/
29
30 /** \file
31  * This file contains dummy replacement API for disabled features
32  */
33
34 #ifdef HAVE_CONFIG_H
35 # include "config.h"
36 #endif
37
38 #include <vlc_common.h>
39 #include <assert.h>
40
41 #ifndef ENABLE_HTTPD
42 # include <vlc_httpd.h>
43
44 char *httpd_ClientIP (const httpd_client_t *cl, char *psz_ip, int *port)
45 {
46     (void) cl; (void) psz_ip; (void) port;
47     assert (0);
48     return NULL;
49 }
50
51 httpd_file_sys_t *httpd_FileDelete (httpd_file_t *file)
52 {
53     (void) file;
54     assert (0);
55     return NULL;
56 }
57
58 httpd_file_t *httpd_FileNew (httpd_host_t *host,
59                              const char *url, const char *content_type,
60                              const char *login, const char *password,
61                              httpd_file_callback_t cb, httpd_file_sys_t *data)
62 {
63     (void) host;
64     (void) url; (void) content_type;
65     (void) login; (void) password;
66     (void) cb; (void) data;
67     assert (0);
68     return NULL;
69 }
70
71 httpd_handler_sys_t *httpd_HandlerDelete (httpd_handler_t *handler)
72 {
73     (void) handler;
74     assert (0);
75     return NULL;
76 }
77
78 httpd_handler_t *httpd_HandlerNew (httpd_host_t *host, const char *url,
79                                    const char *login, const char *password,
80                                    httpd_handler_callback_t cb,
81                                    httpd_handler_sys_t *data)
82 {
83     (void) host; (void) url;
84     (void) login; (void) password;
85     (void) cb; (void) data;
86     assert (0);
87     return NULL;
88 }
89
90 void httpd_HostDelete (httpd_host_t *h)
91 {
92     (void) h;
93     assert (0);
94 }
95
96 httpd_host_t *vlc_http_HostNew (vlc_object_t *obj)
97 {
98     msg_Err (obj, "HTTP server not compiled-in!");
99     return NULL;
100 }
101
102 httpd_host_t *vlc_https_HostNew (vlc_object_t *obj)
103 {
104     msg_Err (obj, "HTTPS server not compiled-in!");
105     return NULL;
106 }
107
108 httpd_host_t *vlc_rtsp_HostNew (vlc_object_t *obj)
109 {
110     msg_Err (obj, "RTSP server not compiled-in!");
111     return NULL;
112 }
113
114 void httpd_MsgAdd (httpd_message_t *m, const char *name, const char *fmt, ...)
115 {
116     (void) m; (void) name; (void) fmt;
117     assert (0);
118 }
119
120 const char *httpd_MsgGet (const httpd_message_t *m, const char *name)
121 {
122     (void) m; (void) name;
123     assert (0);
124     return NULL;
125 }
126
127 void httpd_RedirectDelete (httpd_redirect_t *r)
128 {
129     (void) r;
130     assert (0);
131 }
132
133 httpd_redirect_t *httpd_RedirectNew (httpd_host_t *host,
134                                      const char *dst, const char *src)
135 {
136     (void) host; (void) dst; (void) src;
137     assert (0);
138     return NULL;
139 }
140
141 char *httpd_ServerIP (const httpd_client_t *client, char *ip, int *port)
142 {
143     (void) client; (void) ip; (void) port;
144     assert (0);
145     return NULL;
146 }
147
148 void httpd_StreamDelete (httpd_stream_t *stream)
149 {
150     (void) stream;
151     assert (0);
152 }
153
154 int httpd_StreamHeader (httpd_stream_t *stream, uint8_t *data, int count)
155 {
156     (void) stream; (void) data; (void) count;
157     assert (0);
158     return 0;
159 }
160
161 httpd_stream_t *httpd_StreamNew (httpd_host_t *host,
162                                  const char *url, const char *content_type,
163                                  const char *login, const char *password)
164 {
165     (void) host; (void) url; (void) content_type;
166     (void) login; (void) password;
167     assert (0);
168     return NULL;
169 }
170
171 int httpd_StreamSend (httpd_stream_t *stream, const block_t *p_block)
172 {
173     (void) stream; (void) p_block;
174     assert (0);
175     return 0;
176 }
177
178 int httpd_StreamSetHTTPHeaders (httpd_stream_t * stream,
179                                 httpd_header * headers,
180                                 size_t i_headers)
181 {
182     (void) stream; (void) headers; (void) i_headers;
183     assert (0);
184     return 0;
185 }
186
187 int httpd_UrlCatch (httpd_url_t *url, int request, httpd_callback_t cb,
188                     httpd_callback_sys_t *data)
189 {
190     (void) url; (void) request; (void) cb; (void) data;
191     assert (0);
192     return 0;
193 }
194
195 void httpd_UrlDelete (httpd_url_t *url)
196 {
197     (void) url;
198     assert (0);
199 }
200
201 httpd_url_t *httpd_UrlNew (httpd_host_t *host, const char *url,
202                            const char *login, const char *password)
203 {
204     (void) host; (void) url; (void) login; (void) password;
205     assert (0);
206     return NULL;
207 }
208 #endif /* !ENABLE_HTTPD */
209
210 #ifndef ENABLE_SOUT
211 # include <vlc_sout.h>
212
213 char *sdp_AddMedia (char **sdp, const char *type, const char *protocol,
214                     int dport, unsigned pt, bool bw_indep, unsigned bw,
215                     const char *ptname, unsigned clockrate, unsigned channels,
216                     const char *fmtp)
217 {
218     VLC_UNUSED (sdp); VLC_UNUSED (type); VLC_UNUSED (protocol);
219     VLC_UNUSED (dport); VLC_UNUSED (pt); VLC_UNUSED (bw_indep);
220     VLC_UNUSED (bw); VLC_UNUSED (ptname); VLC_UNUSED (clockrate);
221     VLC_UNUSED (channels); VLC_UNUSED (fmtp);
222     assert (*sdp == NULL);
223     return NULL;
224 }
225
226 char *sdp_AddAttribute (char **sdp, const char *name, const char *fmt, ...)
227 {
228     VLC_UNUSED (sdp); VLC_UNUSED (name); VLC_UNUSED (fmt);
229     assert (*sdp == NULL);
230     return NULL;
231 }
232
233 int sout_AccessOutControl (sout_access_out_t *out, int query, ...)
234 {
235     VLC_UNUSED (out); VLC_UNUSED (query);
236     assert (0);
237     return 0;
238 }
239
240 void sout_AccessOutDelete (sout_access_out_t *out)
241 {
242     VLC_UNUSED (out);
243     assert (0);
244 }
245
246 #undef sout_AccessOutNew
247 sout_access_out_t *sout_AccessOutNew (vlc_object_t *obj,
248                                       const char *access, const char *name)
249 {
250     VLC_UNUSED (access); VLC_UNUSED (name);
251     msg_Err (obj, "Output support not compiled-in!");
252     return NULL;
253 }
254
255 ssize_t sout_AccessOutRead (sout_access_out_t *out, block_t *block)
256 {
257     VLC_UNUSED (out); VLC_UNUSED (block);
258     assert (0);
259     return 0;
260 }
261
262 int sout_AccessOutSeek (sout_access_out_t *out, off_t offset)
263 {
264     VLC_UNUSED (out); VLC_UNUSED (offset);
265     assert (0);
266     return 0;
267 }
268
269 ssize_t sout_AccessOutWrite (sout_access_out_t *out, block_t *block)
270 {
271     VLC_UNUSED (out); VLC_UNUSED (block);
272     assert (0);
273     return 0;
274 }
275
276 #undef sout_AnnounceRegisterSDP
277 session_descriptor_t *sout_AnnounceRegisterSDP (vlc_object_t *obj,
278                                                 const char *sdp,
279                                                 const char *dst)
280 {
281     VLC_UNUSED (sdp); VLC_UNUSED (dst);
282     msg_Err (obj, "SDP export not compiled-in!");
283     return NULL;
284 }
285
286 #undef sout_AnnounceUnRegister
287 int sout_AnnounceUnRegister (vlc_object_t *obj, session_descriptor_t *d)
288 {
289     VLC_UNUSED (obj); VLC_UNUSED (d);
290     assert (0);
291     return 0;
292 }
293
294 #undef sout_EncoderCreate
295 encoder_t *sout_EncoderCreate( vlc_object_t *p_this )
296 {
297     msg_Err (p_this, "Encoding support not compiled-in!");
298     return NULL;
299 }
300
301 sout_input_t *sout_MuxAddStream (sout_mux_t *mux, es_format_t *fmt)
302 {
303     VLC_UNUSED (mux); VLC_UNUSED (fmt);
304     assert (0);
305     return NULL;
306 }
307
308 void sout_MuxDelete (sout_mux_t *mux)
309 {
310     VLC_UNUSED (mux);
311     assert (0);
312 }
313
314 void sout_MuxDeleteStream (sout_mux_t *mux, sout_input_t *input)
315 {
316     VLC_UNUSED (mux); VLC_UNUSED (input);
317     assert (0);
318 }
319
320 int sout_MuxGetStream (sout_mux_t *p_mux, int i_blocks, mtime_t *pi_dts)
321 {
322     VLC_UNUSED (p_mux); VLC_UNUSED (i_blocks); VLC_UNUSED (pi_dts);
323     assert (0);
324     return 0;
325 }
326
327 sout_mux_t *sout_MuxNew (sout_instance_t *instance, const char *mux,
328                          sout_access_out_t *out)
329 {
330     VLC_UNUSED (instance); VLC_UNUSED (mux); VLC_UNUSED (out);
331     assert (0);
332     return NULL;
333 }
334
335 int sout_MuxSendBuffer (sout_mux_t *mux, sout_input_t *input, block_t *block)
336 {
337     VLC_UNUSED (mux); VLC_UNUSED (input); VLC_UNUSED (block);
338     assert (0);
339     return 0;
340 }
341
342 void sout_StreamChainDelete (sout_stream_t *p_first, sout_stream_t *p_last)
343 {
344     VLC_UNUSED (p_first); VLC_UNUSED (p_last);
345     assert (0);
346 }
347
348 sout_stream_t *sout_StreamChainNew (sout_instance_t *p_sout, char *psz_chain,
349                                     sout_stream_t *p_next,
350                                     sout_stream_t **pp_last)
351 {
352     VLC_UNUSED (p_sout); VLC_UNUSED (psz_chain); VLC_UNUSED (p_next);
353     VLC_UNUSED (pp_last);
354     assert (0);
355     return NULL;
356 }
357
358 char *vlc_sdp_Start (vlc_object_t *obj, const char *cfg,
359                      const struct sockaddr *src, size_t srclen,
360                      const struct sockaddr *addr, size_t addrlen)
361 {
362     VLC_UNUSED (obj); VLC_UNUSED (cfg); VLC_UNUSED (src); VLC_UNUSED (srclen);
363     VLC_UNUSED (addr); VLC_UNUSED (addrlen);
364     return NULL;
365 }
366 #endif /* !ENABLE_SOUT */
367
368 #ifndef ENABLE_VLM
369 # include <vlc_vlm.h>
370
371 int vlm_Control (vlm_t *vlm, int query, ...)
372 {
373     VLC_UNUSED (query);
374     VLC_UNUSED (vlm);
375     assert (0);
376     return 0;
377 }
378
379 void vlm_Delete (vlm_t *vlm)
380 {
381     VLC_UNUSED (vlm);
382     assert (0);
383 }
384
385 int vlm_ExecuteCommand (vlm_t *vlm, const char *cmd, vlm_message_t **pm)
386 {
387     VLC_UNUSED (vlm);
388     VLC_UNUSED (cmd);
389     VLC_UNUSED (pm);
390     assert (0);
391     return 0;
392 }
393
394 vlm_message_t *vlm_MessageAdd (vlm_message_t *a, vlm_message_t *b)
395 {
396     VLC_UNUSED (a);
397     VLC_UNUSED (b);
398     assert (0);
399     return NULL;
400 }
401
402 void vlm_MessageDelete (vlm_message_t *m)
403 {
404     VLC_UNUSED (m);
405     assert (0);
406 }
407
408 vlm_message_t *vlm_MessageSimpleNew (const char *a)
409 {
410     VLC_UNUSED (a);
411     return NULL;
412 }
413
414 vlm_message_t *vlm_MessageNew (const char *a, const char *fmt, ...)
415 {
416     VLC_UNUSED (a);
417     VLC_UNUSED (fmt);
418     return vlm_MessageSimpleNew (a);
419 }
420
421 #undef vlm_New
422 vlm_t *vlm_New (vlc_object_t *obj)
423 {
424      msg_Err (obj, "VLM not compiled-in!");
425      return NULL;
426 }
427 #endif /* !ENABLE_VLM */