]> git.sesse.net Git - vlc/blob - src/missing.c
Removed unused httpd_UrlNew()
[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 it
7  * under the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation; either version 2.1 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 Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with this program; if not, write to the Free Software Foundation,
18  * 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, int *port)
36 {
37     (void) cl; (void) psz_ip; (void) port;
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 *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 }
125
126 void httpd_RedirectDelete (httpd_redirect_t *r)
127 {
128     (void) r;
129     assert (0);
130 }
131
132 httpd_redirect_t *httpd_RedirectNew (httpd_host_t *host,
133                                      const char *dst, const char *src)
134 {
135     (void) host; (void) dst; (void) src;
136     assert (0);
137 }
138
139 char *httpd_ServerIP (const httpd_client_t *client, char *ip, int *port)
140 {
141     (void) client; (void) ip; (void) port;
142     assert (0);
143 }
144
145 void httpd_StreamDelete (httpd_stream_t *stream)
146 {
147     (void) stream;
148     assert (0);
149 }
150
151 int httpd_StreamHeader (httpd_stream_t *stream, uint8_t *data, int count)
152 {
153     (void) stream; (void) data; (void) count;
154     assert (0);
155 }
156
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)
161 {
162     (void) host; (void) url; (void) content_type;
163     (void) login; (void) password; (void) acl;
164     assert (0);
165 }
166
167 int httpd_StreamSend (httpd_stream_t *stream, uint8_t *data, int count)
168 {
169     (void) stream; (void) data; (void) count;
170     assert (0);
171 }
172
173 int httpd_UrlCatch (httpd_url_t *url, int request, httpd_callback_t cb,
174                     httpd_callback_sys_t *data)
175 {
176     (void) url; (void) request; (void) cb; (void) data;
177     assert (0);
178 }
179
180 void httpd_UrlDelete (httpd_url_t *url)
181 {
182     (void) url;
183     assert (0);
184 }
185
186 httpd_url_t *httpd_UrlNewUnique (httpd_host_t *host, const char *url,
187                                  const char *login, const char *password,
188                                  const vlc_acl_t *acl)
189 {
190     (void) host; (void) url; (void) login; (void) password; (void) acl;
191     assert (0);
192 }
193 #endif /* !ENABLE_HTTPD */
194
195 #ifndef ENABLE_SOUT
196 # include <vlc_sout.h>
197
198 char *sdp_AddMedia (char **sdp, const char *type, const char *protocol,
199                     int dport, unsigned pt, bool bw_indep, unsigned bw,
200                     const char *ptname, unsigned clockrate, unsigned channels,
201                     const char *fmtp)
202 {
203     assert (*sdp == NULL);
204     return NULL;
205 }
206
207 char *sdp_AddAttribute (char **sdp, const char *name, const char *fmt, ...)
208 {
209     assert (*sdp == NULL);
210     return NULL;
211 }
212
213 int sout_AccessOutControl (sout_access_out_t *out, int query, ...)
214 {
215     assert (0);
216 }
217
218 void sout_AccessOutDelete (sout_access_out_t *out)
219 {
220     assert (0);
221 }
222
223 #undef sout_AccessOutNew
224 sout_access_out_t *sout_AccessOutNew (vlc_object_t *obj,
225                                       const char *access, const char *name)
226 {
227     msg_Err (obj, "Output support not compiled-in!");
228     return NULL;
229 }
230
231 ssize_t sout_AccessOutRead (sout_access_out_t *out, block_t *block)
232 {
233     assert (0);
234 }
235
236 int sout_AccessOutSeek (sout_access_out_t *out, off_t offset)
237 {
238     assert (0);
239 }
240
241 ssize_t sout_AccessOutWrite (sout_access_out_t *out, block_t *block)
242 {
243     assert (0);
244 }
245
246 #undef sout_AnnounceRegisterSDP
247 session_descriptor_t *sout_AnnounceRegisterSDP (vlc_object_t *obj,
248                                                 const char *sdp,
249                                                 const char *dst)
250 {
251     msg_Err (obj, "SDP export not compiled-in!");
252     return NULL;
253 }
254
255 #undef sout_AnnounceUnRegister
256 sout_AnnounceUnRegister (vlc_object_t *obj, session_descriptor_t *d)
257 {
258     assert (0);
259 }
260
261 #undef sout_EncoderCreate
262 encoder_t *sout_EncoderCreate( vlc_object_t *p_this )
263 {
264     msg_Err (p_this, "Encoding support not compiled-in!");
265     return NULL;
266 }
267
268 sout_input_t *sout_MuxAddStream (sout_mux_t *mux, es_format_t *fmt)
269 {
270     assert (0);
271 }
272
273 void sout_MuxDelete (sout_mux_t *mux)
274 {
275     assert (0);
276 }
277
278 void sout_MuxDeleteStream (sout_mux_t *mux, sout_input_t *input)
279 {
280     assert (0);
281 }
282
283 int sout_MuxGetStream (sout_mux_t *p_mux, int i_blocks, mtime_t *pi_dts)
284 {
285     assert (0);
286 }
287
288 sout_mux_t *sout_MuxNew (sout_instance_t *instance, const char *mux,
289                          sout_access_out_t *out)
290 {
291     assert (0);
292 }
293
294 void sout_MuxSendBuffer (sout_mux_t *mux, sout_input_t *input, block_t *block)
295 {
296     assert (0);
297 }
298
299 void sout_StreamChainDelete (sout_stream_t *p_first, sout_stream_t *p_last)
300 {
301     assert (0);
302 }
303
304 sout_stream_t *sout_StreamChainNew (sout_instance_t *p_sout, char *psz_chain,
305                                     sout_stream_t *p_next,
306                                     sout_stream_t **pp_last)
307 {
308     assert (0);
309 }
310
311 char *vlc_sdp_Start (vlc_object_t *obj, const char *cfg,
312                      const struct sockaddr *src, size_t srclen,
313                      const struct sockaddr *addr, size_t addrlen)
314 {
315     return NULL;
316 }
317 #endif /* !ENABLE_SOUT */
318
319 #ifndef ENABLE_VLM
320 # include <vlc_vlm.h>
321
322 int vlm_Control (vlm_t *vlm, int query, ...)
323 {
324     VLC_UNUSED (vlm);
325     assert (0);
326 }
327
328 void vlm_Delete (vlm_t *vlm)
329 {
330     VLC_UNUSED (vlm);
331     assert (0);
332 }
333
334 int vlm_ExecuteCommand (vlm_t *vlm, const char *cmd, vlm_message_t **pm)
335 {
336     VLC_UNUSED (vlm);
337     VLC_UNUSED (cmd);
338     VLC_UNUSED (pm);
339     assert (0);
340 }
341
342 vlm_message_t *vlm_MessageAdd (vlm_message_t *a, vlm_message_t *b)
343 {
344     VLC_UNUSED (a);
345     VLC_UNUSED (b);
346     assert (0);
347 }
348
349 void vlm_MessageDelete (vlm_message_t *m)
350 {
351     VLC_UNUSED (m);
352     assert (0);
353 }
354
355 vlm_message_t *vlm_MessageSimpleNew (const char *a)
356 {
357     VLC_UNUSED (a);
358     return NULL;
359 }
360
361 vlm_message_t *vlm_MessageNew (const char *a, const char *fmt, ...)
362 {
363     VLC_UNUSED (a);
364     VLC_UNUSED (fmt);
365     return vlm_MessageSimpleNew (a);
366 }
367
368 #undef vlm_New
369 vlm_t *vlm_New (vlc_object_t *obj)
370 {
371      msg_Err (obj, "VLM not compiled-in!");
372      return NULL;
373 }
374 #endif /* !ENABLE_VLM */
375
376 #ifndef MEDIA_LIBRARY
377 #include<vlc_media_library.h>
378
379 #undef ml_Get
380 media_library_t* ml_Get ( vlc_object_t* p_this )
381 {
382     VLC_UNUSED( p_this );
383     return NULL;
384 }
385
386 media_library_t* ml_Create ( vlc_object_t *p_this, char* psz_name )
387 {
388     VLC_UNUSED( p_this );
389     VLC_UNUSED( psz_name );
390     return NULL;
391 }
392
393 void ml_Destroy( vlc_object_t * p_this )
394 {
395     VLC_UNUSED( p_this );
396     assert( 0 );
397 }
398
399 ml_media_t* media_New( media_library_t* p_ml, int id, ml_select_e select, bool reload )
400 {
401     VLC_UNUSED( p_ml );
402     VLC_UNUSED( id );
403     VLC_UNUSED( select );
404     VLC_UNUSED( reload );
405     assert( 0 );
406     return NULL;
407 }
408
409 #undef ml_UpdateSimple
410 int ml_UpdateSimple( media_library_t *p_media_library, ml_select_e selected_type,
411                                      const char* psz_lvalue, int id, ... )
412 {
413     VLC_UNUSED( p_media_library );
414     VLC_UNUSED( selected_type );
415     VLC_UNUSED( psz_lvalue );
416     VLC_UNUSED( id );
417     assert( 0 );
418     return 0;
419 }
420
421 ml_ftree_t* ml_OpConnectChilds( ml_op_e op, ml_ftree_t* left, ml_ftree_t* right )
422 {
423     VLC_UNUSED( op );
424     VLC_UNUSED( left );
425     VLC_UNUSED( right );
426     assert( 0 );
427     return NULL;
428 }
429
430 ml_ftree_t* ml_FtreeSpec( ml_ftree_t* tree, ml_select_e crit, int limit,
431                                           char* sort )
432 {
433     VLC_UNUSED( tree );
434     VLC_UNUSED( crit );
435     VLC_UNUSED( limit );
436     VLC_UNUSED( sort );
437     assert( 0 );
438     return NULL;
439 }
440
441 void ml_PlaySmartPlaylistBasedOn( media_library_t* p_ml,
442                                                 ml_ftree_t* p_tree )
443 {
444     VLC_UNUSED( p_ml );
445     VLC_UNUSED( p_tree );
446     assert( 0 );
447 }
448
449 void ml_DeletePersonTypeFromMedia( ml_media_t* p_media, const char *psz_role )
450 {
451     VLC_UNUSED( p_media );
452     VLC_UNUSED( psz_role );
453     assert( 0 );
454 }
455
456 ml_person_t*  ml_GetPersonsFromMedia( media_library_t* p_ml,
457                                                     ml_media_t* p_media,
458                                                     const char *psz_role )
459 {
460     VLC_UNUSED( p_ml );
461     VLC_UNUSED( p_media );
462     VLC_UNUSED( psz_role );
463     assert( 0 );
464     return NULL;
465 }
466 #endif /* !MEDIA_LIBRARY */