Switcher: avoid use of unset variable
[vlc.git] / src / missing.c
blob6a6ec19aa5981161189534916a14755c23b303e3
1 /*****************************************************************************
2 * missing.c: missing libvlccore symbols
3 *****************************************************************************
4 * Copyright (C) 2008 RĂ©mi Denis-Courmont
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.
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.
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 *****************************************************************************/
21 /** \file
22 * This file contains dummy replacement API for disabled features
25 #ifdef HAVE_CONFIG_H
26 # include "config.h"
27 #endif
29 #include <vlc_common.h>
30 #include <assert.h>
32 #ifndef ENABLE_HTTPD
33 # include <vlc_httpd.h>
35 char *httpd_ClientIP (const httpd_client_t *cl, char *psz_ip, int *port)
37 (void) cl; (void) psz_ip; (void) port;
38 assert (0);
41 void httpd_ClientModeBidir (httpd_client_t *cl)
43 (void) cl;
44 assert (0);
47 void httpd_ClientModeStream (httpd_client_t *cl)
49 (void) cl;
50 assert (0);
53 httpd_file_sys_t *httpd_FileDelete (httpd_file_t *file)
55 (void) file;
56 assert (0);
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)
65 (void) host;
66 (void) url; (void) content_type;
67 (void) login; (void) password; (void) acl;
68 (void) cb; (void) data;
69 assert (0);
72 httpd_handler_sys_t *httpd_HandlerDelete (httpd_handler_t *handler)
74 (void) handler;
75 assert (0);
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)
84 (void) host; (void) url;
85 (void) login; (void) password; (void) acl;
86 (void) cb; (void) data;
87 assert (0);
90 void httpd_HostDelete (httpd_host_t *h)
92 (void) h;
93 assert (0);
96 httpd_host_t *vlc_http_HostNew (vlc_object_t *obj)
98 msg_Err (obj, "HTTP server not compiled-in!");
99 return NULL;
102 httpd_host_t *vlc_https_HostNew (vlc_object_t *obj)
104 msg_Err (obj, "HTTPS server not compiled-in!");
105 return NULL;
108 httpd_host_t *vlc_rtsp_HostNew (vlc_object_t *obj)
110 msg_Err (obj, "RTSP server not compiled-in!");
111 return NULL;
114 void httpd_MsgAdd (httpd_message_t *m, const char *name, const char *fmt, ...)
116 (void) m; (void) name; (void) fmt;
117 assert (0);
120 const char *httpd_MsgGet (const httpd_message_t *m, const char *name)
122 (void) m; (void) name;
123 assert (0);
126 void httpd_RedirectDelete (httpd_redirect_t *r)
128 (void) r;
129 assert (0);
132 httpd_redirect_t *httpd_RedirectNew (httpd_host_t *host,
133 const char *dst, const char *src)
135 (void) host; (void) dst; (void) src;
136 assert (0);
139 char *httpd_ServerIP (const httpd_client_t *client, char *ip, int *port)
141 (void) client; (void) ip; (void) port;
142 assert (0);
145 void httpd_StreamDelete (httpd_stream_t *stream)
147 (void) stream;
148 assert (0);
151 int httpd_StreamHeader (httpd_stream_t *stream, uint8_t *data, int count)
153 (void) stream; (void) data; (void) count;
154 assert (0);
157 httpd_stream_t *httpd_StreamNew (httpd_host_t *host,
158 const char *url, const char *content_type,
159 const char *login, const char *password,
160 const vlc_acl_t *acl)
162 (void) host; (void) url; (void) content_type;
163 (void) login; (void) password; (void) acl;
164 assert (0);
167 int httpd_StreamSend (httpd_stream_t *stream, uint8_t *data, int count)
169 (void) stream; (void) data; (void) count;
170 assert (0);
173 int httpd_UrlCatch (httpd_url_t *url, int request, httpd_callback_t cb,
174 httpd_callback_sys_t *data)
176 (void) url; (void) request; (void) cb; (void) data;
177 assert (0);
180 void httpd_UrlDelete (httpd_url_t *url)
182 (void) url;
183 assert (0);
186 httpd_url_t *httpd_UrlNew (httpd_host_t *host, const char *url,
187 const char *login, const char *password,
188 const vlc_acl_t *acl)
190 (void) host; (void) url; (void) login; (void) password; (void) acl;
191 assert (0);
194 httpd_url_t *httpd_UrlNewUnique (httpd_host_t *host, const char *url,
195 const char *login, const char *password,
196 const vlc_acl_t *acl)
198 (void) host; (void) url; (void) login; (void) password; (void) acl;
199 assert (0);
201 #endif /* !ENABLE_HTTPD */
203 #ifndef ENABLE_SOUT
204 # include <vlc_sout.h>
206 char *sdp_AddMedia (char **sdp, const char *type, const char *protocol,
207 int dport, unsigned pt, bool bw_indep, unsigned bw,
208 const char *ptname, unsigned clockrate, unsigned channels,
209 const char *fmtp)
211 assert (*sdp == NULL);
212 return NULL;
215 char *sdp_AddAttribute (char **sdp, const char *name, const char *fmt, ...)
217 assert (*sdp == NULL);
218 return NULL;
221 int sout_AccessOutControl (sout_access_out_t *out, int query, ...)
223 assert (0);
226 void sout_AccessOutDelete (sout_access_out_t *out)
228 assert (0);
231 #undef sout_AccessOutNew
232 sout_access_out_t *sout_AccessOutNew (vlc_object_t *obj,
233 const char *access, const char *name)
235 msg_Err (obj, "Output support not compiled-in!");
236 return NULL;
239 ssize_t sout_AccessOutRead (sout_access_out_t *out, block_t *block)
241 assert (0);
244 int sout_AccessOutSeek (sout_access_out_t *out, off_t offset)
246 assert (0);
249 ssize_t sout_AccessOutWrite (sout_access_out_t *out, block_t *block)
251 assert (0);
254 #undef sout_AnnounceRegisterSDP
255 session_descriptor_t *sout_AnnounceRegisterSDP (vlc_object_t *obj,
256 const char *sdp,
257 const char *dst)
259 msg_Err (obj, "SDP export not compiled-in!");
260 return NULL;
263 #undef sout_AnnounceUnRegister
264 sout_AnnounceUnRegister (vlc_object_t *obj, session_descriptor_t *d)
266 assert (0);
269 #undef sout_EncoderCreate
270 encoder_t *sout_EncoderCreate( vlc_object_t *p_this )
272 msg_Err (p_this, "Encoding support not compiled-in!");
273 return NULL;
276 sout_input_t *sout_MuxAddStream (sout_mux_t *mux, es_format_t *fmt)
278 assert (0);
281 void sout_MuxDelete (sout_mux_t *mux)
283 assert (0);
286 void sout_MuxDeleteStream (sout_mux_t *mux, sout_input_t *input)
288 assert (0);
291 int sout_MuxGetStream (sout_mux_t *p_mux, int i_blocks, mtime_t *pi_dts)
293 assert (0);
296 sout_mux_t *sout_MuxNew (sout_instance_t *instance, const char *mux,
297 sout_access_out_t *out)
299 assert (0);
302 void sout_MuxSendBuffer (sout_mux_t *mux, sout_input_t *input, block_t *block)
304 assert (0);
307 void sout_StreamChainDelete (sout_stream_t *p_first, sout_stream_t *p_last)
309 assert (0);
312 sout_stream_t *sout_StreamChainNew (sout_instance_t *p_sout, char *psz_chain,
313 sout_stream_t *p_next,
314 sout_stream_t **pp_last)
316 assert (0);
319 char *vlc_sdp_Start (vlc_object_t *obj, const char *cfg,
320 const struct sockaddr *src, size_t srclen,
321 const struct sockaddr *addr, size_t addrlen)
323 return NULL;
325 #endif /* !ENABLE_SOUT */
327 #ifndef ENABLE_VLM
328 # include <vlc_vlm.h>
330 int vlm_Control (vlm_t *vlm, int query, ...)
332 VLC_UNUSED (vlm);
333 assert (0);
336 void vlm_Delete (vlm_t *vlm)
338 VLC_UNUSED (vlm);
339 assert (0);
342 int vlm_ExecuteCommand (vlm_t *vlm, const char *cmd, vlm_message_t **pm)
344 VLC_UNUSED (vlm);
345 VLC_UNUSED (cmd);
346 VLC_UNUSED (pm);
347 assert (0);
350 vlm_message_t *vlm_MessageAdd (vlm_message_t *a, vlm_message_t *b)
352 VLC_UNUSED (a);
353 VLC_UNUSED (b);
354 assert (0);
357 void vlm_MessageDelete (vlm_message_t *m)
359 VLC_UNUSED (m);
360 assert (0);
363 vlm_message_t *vlm_MessageSimpleNew (const char *a)
365 VLC_UNUSED (a);
366 return NULL;
369 vlm_message_t *vlm_MessageNew (const char *a, const char *fmt, ...)
371 VLC_UNUSED (a);
372 VLC_UNUSED (fmt);
373 return vlm_MessageSimpleNew (a);
376 #undef vlm_New
377 vlm_t *vlm_New (vlc_object_t *obj)
379 msg_Err (obj, "VLM not compiled-in!");
380 return NULL;
382 #endif /* !ENABLE_VLM */
384 #ifndef MEDIA_LIBRARY
385 #include<vlc_media_library.h>
387 #undef ml_Get
388 media_library_t* ml_Get ( vlc_object_t* p_this )
390 VLC_UNUSED( p_this );
391 return NULL;
394 media_library_t* ml_Create ( vlc_object_t *p_this, char* psz_name )
396 VLC_UNUSED( p_this );
397 VLC_UNUSED( psz_name );
398 return NULL;
401 void ml_Destroy( vlc_object_t * p_this )
403 VLC_UNUSED( p_this );
404 assert( 0 );
407 ml_media_t* media_New( media_library_t* p_ml, int id, ml_select_e select, bool reload )
409 VLC_UNUSED( p_ml );
410 VLC_UNUSED( id );
411 VLC_UNUSED( select );
412 VLC_UNUSED( reload );
413 assert( 0 );
414 return NULL;
417 #undef ml_UpdateSimple
418 int ml_UpdateSimple( media_library_t *p_media_library, ml_select_e selected_type,
419 const char* psz_lvalue, int id, ... )
421 VLC_UNUSED( p_media_library );
422 VLC_UNUSED( selected_type );
423 VLC_UNUSED( psz_lvalue );
424 VLC_UNUSED( id );
425 assert( 0 );
426 return 0;
429 ml_ftree_t* ml_OpConnectChilds( ml_op_e op, ml_ftree_t* left, ml_ftree_t* right )
431 VLC_UNUSED( op );
432 VLC_UNUSED( left );
433 VLC_UNUSED( right );
434 assert( 0 );
435 return NULL;
438 ml_ftree_t* ml_FtreeSpec( ml_ftree_t* tree, ml_select_e crit, int limit,
439 char* sort )
441 VLC_UNUSED( tree );
442 VLC_UNUSED( crit );
443 VLC_UNUSED( limit );
444 VLC_UNUSED( sort );
445 assert( 0 );
446 return NULL;
449 void ml_PlaySmartPlaylistBasedOn( media_library_t* p_ml,
450 ml_ftree_t* p_tree )
452 VLC_UNUSED( p_ml );
453 VLC_UNUSED( p_tree );
454 assert( 0 );
457 void ml_DeletePersonTypeFromMedia( ml_media_t* p_media, const char *psz_role )
459 VLC_UNUSED( p_media );
460 VLC_UNUSED( psz_role );
461 assert( 0 );
464 ml_person_t* ml_GetPersonsFromMedia( media_library_t* p_ml,
465 ml_media_t* p_media,
466 const char *psz_role )
468 VLC_UNUSED( p_ml );
469 VLC_UNUSED( p_media );
470 VLC_UNUSED( psz_role );
471 assert( 0 );
472 return NULL;
474 #endif /* !MEDIA_LIBRARY */