]> git.sesse.net Git - vlc/blob - src/missing.c
missing: build fix
[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     (void) cl; (void) psz_ip;
38     assert (0);
39 }
40
41 void httpd_ClientModeBidir (httpd_client_t *cl)
42 {
43     (void) cl;
44     assert (0);
45 }
46
47 void httpd_ClientModeStream (httpd_client_t *cl)
48 {
49     (void) cl;
50     assert (0);
51 }
52
53 httpd_file_sys_t *httpd_FileDelete (httpd_file_t *file)
54 {
55     (void) file;
56     assert (0);
57 }
58
59 httpd_file_t *httpd_FileNew (httpd_host_t *host,
60                              const char *url, const char *content_type,
61                              const char *login, const char *password,
62                              const vlc_acl_t *acl,
63                              httpd_file_callback_t cb, httpd_file_sys_t *data)
64 {
65     (void) host;
66     (void) url; (void) content_type;
67     (void) login; (void) password; (void) acl;
68     (void) cb; (void) data;
69     assert (0);
70 }
71
72 httpd_handler_sys_t *httpd_HandlerDelete (httpd_handler_t *handler)
73 {
74     (void) handler;
75     assert (0);
76 }
77
78 httpd_handler_t *httpd_HandlerNew (httpd_host_t *host, const char *url,
79                                    const char *login, const char *password,
80                                    const vlc_acl_t *acl,
81                                    httpd_handler_callback_t cb,
82                                    httpd_handler_sys_t *data)
83 {
84     (void) host; (void) url;
85     (void) login; (void) password; (void) acl;
86     (void) cb; (void) data;
87     assert (0);
88 }
89
90 void httpd_HostDelete (httpd_host_t *h)
91 {
92     (void) h;
93     assert (0);
94 }
95
96 httpd_host_t *httpd_HostNew (vlc_object_t *obj, const char *host, int port)
97 {
98     return httpd_TLSHostNew (obj, host, port, NULL, NULL, NULL, NULL);
99 }
100
101 void httpd_MsgAdd (httpd_message_t *m, const char *name, const char *fmt, ...)
102 {
103     (void) m; (void) name; (void) fmt;
104     assert (0);
105 }
106
107 const char *httpd_MsgGet (const httpd_message_t *m, const char *name)
108 {
109     (void) m; (void) name;
110     assert (0);
111 }
112
113 void httpd_RedirectDelete (httpd_redirect_t *r)
114 {
115     (void) r;
116     assert (0);
117 }
118
119 httpd_redirect_t *httpd_RedirectNew (httpd_host_t *host,
120                                      const char *dst, const char *src)
121 {
122     (void) host; (void) dst; (void) src;
123     assert (0);
124 }
125
126 char *httpd_ServerIP (const httpd_client_t *client, char *ip)
127 {
128     (void) client; (void) ip;
129     assert (0);
130 }
131
132 void httpd_StreamDelete (httpd_stream_t *stream)
133 {
134     (void) stream;
135     assert (0);
136 }
137
138 int httpd_StreamHeader (httpd_stream_t *stream, uint8_t *data, int count)
139 {
140     (void) stream; (void) data; (void) count;
141     assert (0);
142 }
143
144 httpd_stream_t *httpd_StreamNew (httpd_host_t *host,
145                                  const char *url, const char *content_type,
146                                  const char *login, const char *password,
147                                  const vlc_acl_t *acl)
148 {
149     (void) host; (void) url; (void) content_type;
150     (void) login; (void) password; (void) acl;
151     assert (0);
152 }
153
154 int httpd_StreamSend (httpd_stream_t *stream, uint8_t *data, int count)
155 {
156     (void) stream; (void) data; (void) count;
157     assert (0);
158 }
159
160 httpd_host_t *httpd_TLSHostNew (vlc_object_t *obj, const char *host, int port,
161                                 const char *cert, const char *key,
162                                 const char *ca, const char *crl)
163 {
164      (void) host; (void) port;
165      (void) cert; (void) key; (void) ca; (void) crl;
166      msg_Err (obj, "VLC httpd support not compiled-in!");
167      return NULL;
168 }
169
170 int httpd_UrlCatch (httpd_url_t *url, int request, httpd_callback_t cb,
171                     httpd_callback_sys_t *data)
172 {
173     (void) url; (void) request; (void) cb; (void) data;
174     assert (0);
175 }
176
177 void httpd_UrlDelete (httpd_url_t *url)
178 {
179     (void) url;
180     assert (0);
181 }
182
183 httpd_url_t *httpd_UrlNew (httpd_host_t *host, const char *url,
184                            const char *login, const char *password,
185                            const vlc_acl_t *acl)
186 {
187     (void) host; (void) url; (void) login; (void) password; (void) acl;
188     assert (0);
189 }
190
191 httpd_url_t *httpd_UrlNewUnique (httpd_host_t *host, const char *url,
192                                  const char *login, const char *password,
193                                  const vlc_acl_t *acl)
194 {
195     (void) host; (void) url; (void) login; (void) password; (void) acl;
196     assert (0);
197 }
198 #endif /* !ENABLE_HTTPD */
199
200 #ifndef ENABLE_SOUT
201 # include <vlc_sout.h>
202
203 char *sdp_AddMedia (char **sdp, const char *type, const char *protocol,
204                     int dport, unsigned pt, bool bw_indep, unsigned bw,
205                     const char *ptname, unsigned clockrate, unsigned channels,
206                     const char *fmtp)
207 {
208     assert (*sdp == NULL);
209     return NULL;
210 }
211
212 char *sdp_AddAttribute (char **sdp, const char *name, const char *fmt, ...)
213 {
214     assert (*sdp == NULL);
215     return NULL;
216 }
217
218 int sout_AccessOutControl (sout_access_out_t *out, int query, ...)
219 {
220     assert (0);
221 }
222
223 void sout_AccessOutDelete (sout_access_out_t *out)
224 {
225     assert (0);
226 }
227
228 #undef sout_AccessOutNew
229 sout_access_out_t *sout_AccessOutNew (vlc_object_t *obj,
230                                       const char *access, const char *name)
231 {
232     msg_Err (obj, "Output support not compiled-in!");
233     return NULL;
234 }
235
236 ssize_t sout_AccessOutRead (sout_access_out_t *out, block_t *block)
237 {
238     assert (0);
239 }
240
241 int sout_AccessOutSeek (sout_access_out_t *out, off_t offset)
242 {
243     assert (0);
244 }
245
246 ssize_t sout_AccessOutWrite (sout_access_out_t *out, block_t *block)
247 {
248     assert (0);
249 }
250
251 #undef sout_AnnounceRegisterSDP
252 session_descriptor_t *sout_AnnounceRegisterSDP (vlc_object_t *obj,
253                                                 const char *sdp,
254                                                 const char *dst)
255 {
256     msg_Err (obj, "SDP export not compiled-in!");
257     return NULL;
258 }
259
260 #undef sout_AnnounceUnRegister
261 sout_AnnounceUnRegister (vlc_object_t *obj, session_descriptor_t *d)
262 {
263     assert (0);
264 }
265
266 #undef sout_EncoderCreate
267 encoder_t *sout_EncoderCreate( vlc_object_t *p_this )
268 {
269     msg_Err (p_this, "Encoding support not compiled-in!");
270     return NULL;
271 }
272
273 sout_input_t *sout_MuxAddStream (sout_mux_t *mux, es_format_t *fmt)
274 {
275     assert (0);
276 }
277
278 void sout_MuxDelete (sout_mux_t *mux)
279 {
280     assert (0);
281 }
282
283 void sout_MuxDeleteStream (sout_mux_t *mux, sout_input_t *input)
284 {
285     assert (0);
286 }
287
288 int sout_MuxGetStream (sout_mux_t *p_mux, int i_blocks, mtime_t *pi_dts)
289 {
290     assert (0);
291 }
292
293 sout_mux_t *sout_MuxNew (sout_instance_t *instance, const char *mux,
294                          sout_access_out_t *out)
295 {
296     assert (0);
297 }
298
299 void sout_MuxSendBuffer (sout_mux_t *mux, sout_input_t *input, block_t *block)
300 {
301     assert (0);
302 }
303
304 void sout_StreamChainDelete (sout_stream_t *p_first, sout_stream_t *p_last)
305 {
306     assert (0);
307 }
308
309 sout_stream_t *sout_StreamChainNew (sout_instance_t *p_sout, char *psz_chain,
310                                     sout_stream_t *p_next,
311                                     sout_stream_t **pp_last)
312 {
313     assert (0);
314 }
315
316 void sout_UpdateStatistic (sout_instance_t *instance, sout_statistic_t stat,
317                            int value)
318 {
319     assert (0);
320 }
321
322 char *vlc_sdp_Start (vlc_object_t *obj, const char *cfg,
323                      const struct sockaddr *src, size_t srclen,
324                      const struct sockaddr *addr, size_t addrlen)
325 {
326     return NULL;
327 }
328 #endif /* !ENABLE_SOUT */
329
330 #ifndef ENABLE_VLM
331 # include <vlc_vlm.h>
332
333 int vlm_Control (vlm_t *vlm, int query, ...)
334 {
335     VLC_UNUSED (vlm);
336     assert (0);
337 }
338
339 void vlm_Delete (vlm_t *vlm)
340 {
341     VLC_UNUSED (vlm);
342     assert (0);
343 }
344
345 int vlm_ExecuteCommand (vlm_t *vlm, const char *cmd, vlm_message_t **pm)
346 {
347     VLC_UNUSED (vlm);
348     VLC_UNUSED (cmd);
349     VLC_UNUSED (pm);
350     assert (0);
351 }
352
353 vlm_message_t *vlm_MessageAdd (vlm_message_t *a, vlm_message_t *b)
354 {
355     VLC_UNUSED (a);
356     VLC_UNUSED (b);
357     assert (0);
358 }
359
360 void vlm_MessageDelete (vlm_message_t *m)
361 {
362     VLC_UNUSED (m);
363     assert (0);
364 }
365
366 vlm_message_t *vlm_MessageSimpleNew (const char *a)
367 {
368     VLC_UNUSED (a);
369     return NULL;
370 }
371
372 vlm_message_t *vlm_MessageNew (const char *a, const char *fmt, ...)
373 {
374     VLC_UNUSED (a);
375     VLC_UNUSED (fmt);
376     return vlm_MessageSimpleNew (a);
377 }
378
379 #undef vlm_New
380 vlm_t *vlm_New (vlc_object_t *obj)
381 {
382      msg_Err (obj, "VLM not compiled-in!");
383      return NULL;
384 }
385 #endif /* !ENABLE_VLM */
386
387 #ifndef MEDIA_LIBRARY
388 #include<vlc_media_library.h>
389
390 #undef ml_Hold
391 media_library_t* ml_Hold ( vlc_object_t* p_this )
392 {
393     VLC_UNUSED( p_this );
394     return NULL;
395 }
396
397 #undef ml_Release
398 void ml_Release ( vlc_object_t* p_this )
399 {
400     VLC_UNUSED( p_this );
401     assert( 0 );
402 }
403
404 media_library_t* ml_Create ( vlc_object_t *p_this, char* psz_name )
405 {
406     VLC_UNUSED( p_this );
407     VLC_UNUSED( psz_name );
408     return NULL;
409 }
410
411 void ml_Destroy( vlc_object_t * p_this )
412 {
413     VLC_UNUSED( p_this );
414     assert( 0 );
415 }
416
417 ml_media_t* media_New( media_library_t* p_ml, int id, ml_select_e select, bool reload )
418 {
419     VLC_UNUSED( p_ml );
420     VLC_UNUSED( id );
421     VLC_UNUSED( select );
422     VLC_UNUSED( reload );
423     assert( 0 );
424     return NULL;
425 }
426
427 #undef ml_UpdateSimple
428 int ml_UpdateSimple( media_library_t *p_media_library, ml_select_e selected_type,
429                                      const char* psz_lvalue, int id, ... )
430 {
431     VLC_UNUSED( p_media_library );
432     VLC_UNUSED( selected_type );
433     VLC_UNUSED( psz_lvalue );
434     VLC_UNUSED( id );
435     assert( 0 );
436     return 0;
437 }
438
439 ml_ftree_t* ml_OpConnectChilds( ml_op_e op, ml_ftree_t* left, ml_ftree_t* right )
440 {
441     VLC_UNUSED( op );
442     VLC_UNUSED( left );
443     VLC_UNUSED( right );
444     assert( 0 );
445     return NULL;
446 }
447
448 ml_ftree_t* ml_FtreeSpec( ml_ftree_t* tree, ml_select_e crit, int limit,
449                                           char* sort )
450 {
451     VLC_UNUSED( tree );
452     VLC_UNUSED( crit );
453     VLC_UNUSED( limit );
454     VLC_UNUSED( sort );
455     assert( 0 );
456     return NULL;
457 }
458
459 void ml_PlaySmartPlaylistBasedOn( media_library_t* p_ml,
460                                                 ml_ftree_t* p_tree )
461 {
462     VLC_UNUSED( p_ml );
463     VLC_UNUSED( p_tree );
464     assert( 0 );
465 }
466
467 void ml_DeletePersonTypeFromMedia( ml_media_t* p_media, const char *psz_role )
468 {
469     VLC_UNUSED( p_media );
470     VLC_UNUSED( psz_role );
471     assert( 0 );
472 }
473
474 ml_person_t*  ml_GetPersonsFromMedia( media_library_t* p_ml,
475                                                     ml_media_t* p_media,
476                                                     const char *psz_role )
477 {
478     VLC_UNUSED( p_ml );
479     VLC_UNUSED( p_media );
480     VLC_UNUSED( psz_role );
481     assert( 0 );
482     return NULL;
483 }
484 #endif /* !MEDIA_LIBRARY */