add caching emits for dvb, dshow, screen and dvdread
[vlc.git] / src / missing.c
blobca8e92865c4124a8bf58ae680e67e246456c5efb
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)
37 (void) cl; (void) psz_ip;
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 *httpd_HostNew (vlc_object_t *obj, const char *host, int port)
98 return httpd_TLSHostNew (obj, host, port, NULL, NULL, NULL, NULL);
101 void httpd_MsgAdd (httpd_message_t *m, const char *name, const char *fmt, ...)
103 (void) m; (void) name; (void) fmt;
104 assert (0);
107 const char *httpd_MsgGet (const httpd_message_t *m, const char *name)
109 (void) m; (void) name;
110 assert (0);
113 void httpd_RedirectDelete (httpd_redirect_t *r)
115 (void) r;
116 assert (0);
119 httpd_redirect_t *httpd_RedirectNew (httpd_host_t *host,
120 const char *dst, const char *src)
122 (void) host; (void) dst; (void) src;
123 assert (0);
126 char *httpd_ServerIP (const httpd_client_t *client, char *ip)
128 (void) client; (void) ip;
129 assert (0);
132 void httpd_StreamDelete (httpd_stream_t *stream)
134 (void) stream;
135 assert (0);
138 int httpd_StreamHeader (httpd_stream_t *stream, uint8_t *data, int count)
140 (void) stream; (void) data; (void) count;
141 assert (0);
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)
149 (void) host; (void) url; (void) content_type;
150 (void) login; (void) password; (void) acl;
151 assert (0);
154 int httpd_StreamSend (httpd_stream_t *stream, uint8_t *data, int count)
156 (void) stream; (void) data; (void) count;
157 assert (0);
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)
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;
170 int httpd_UrlCatch (httpd_url_t *url, int request, httpd_callback_t cb,
171 httpd_callback_sys_t *data)
173 (void) url; (void) request; (void) cb; (void) data;
174 assert (0);
177 void httpd_UrlDelete (httpd_url_t *url)
179 (void) url;
180 assert (0);
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)
187 (void) host; (void) url; (void) login; (void) password; (void) acl;
188 assert (0);
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)
195 (void) host; (void) url; (void) login; (void) password; (void) acl;
196 assert (0);
198 #endif /* !ENABLE_HTTPD */
200 #ifndef ENABLE_SOUT
201 # include <vlc_sout.h>
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)
208 assert (*sdp == NULL);
209 return NULL;
212 char *sdp_AddAttribute (char **sdp, const char *name, const char *fmt, ...)
214 assert (*sdp == NULL);
215 return NULL;
218 int sout_AccessOutControl (sout_access_out_t *out, int query, ...)
220 assert (0);
223 void sout_AccessOutDelete (sout_access_out_t *out)
225 assert (0);
228 #undef sout_AccessOutNew
229 sout_access_out_t *sout_AccessOutNew (vlc_object_t *obj,
230 const char *access, const char *name)
232 msg_Err (obj, "Output support not compiled-in!");
233 return NULL;
236 ssize_t sout_AccessOutRead (sout_access_out_t *out, block_t *block)
238 assert (0);
241 int sout_AccessOutSeek (sout_access_out_t *out, off_t offset)
243 assert (0);
246 ssize_t sout_AccessOutWrite (sout_access_out_t *out, block_t *block)
248 assert (0);
251 #undef sout_AnnounceRegisterSDP
252 session_descriptor_t *sout_AnnounceRegisterSDP (vlc_object_t *obj,
253 const char *sdp,
254 const char *dst,
255 announce_method_t *method)
257 msg_Err (obj, "SDP export not compiled-in!");
258 assert (method == NULL);
259 return NULL;
262 #undef sout_AnnounceUnRegister
263 sout_AnnounceUnRegister (vlc_object_t *obj, session_descriptor_t *d)
265 assert (0);
268 #undef sout_EncoderCreate
269 encoder_t *sout_EncoderCreate( vlc_object_t *p_this )
271 msg_Err (p_this, "Encoding support not compiled-in!");
272 return NULL;
275 void sout_MethodRelease (announce_method_t *method)
277 (void)method;
280 sout_input_t *sout_MuxAddStream (sout_mux_t *mux, es_format_t *fmt)
282 assert (0);
285 void sout_MuxDelete (sout_mux_t *mux)
287 assert (0);
290 void sout_MuxDeleteStream (sout_mux_t *mux, sout_input_t *input)
292 assert (0);
295 sout_mux_t *sout_MuxNew (sout_instance_t *instance, char *mux,
296 sout_access_out_t *out)
298 assert (0);
301 void sout_MuxSendBuffer (sout_mux_t *mux, sout_input_t *input, block_t *block)
303 assert (0);
306 announce_method_t *sout_SAPMethod (void)
308 return NULL;
311 void sout_StreamDelete (sout_stream_t *stream)
313 assert (0);
316 sout_stream_t *sout_StreamNew (sout_instance_t *instance, char *chain)
318 assert (0);
321 void sout_UpdateStatistic (sout_instance_t *instance, sout_statistic_t stat,
322 int value)
324 assert (0);
327 char *vlc_sdp_Start (vlc_object_t *obj, const char *cfg,
328 const struct sockaddr *src, size_t srclen,
329 const struct sockaddr *addr, size_t addrlen)
331 return NULL;
333 #endif /* !ENABLE_SOUT */
335 #ifndef ENABLE_VLM
336 # include <vlc_vlm.h>
338 int vlm_Control (vlm_t *vlm, int query, ...)
340 assert (0);
343 void vlm_Delete (vlm_t *vlm)
345 assert (0);
348 int vlm_ExecuteCommand (vlm_t *vlm, const char *cmd, vlm_message_t **pm)
350 assert (0);
353 vlm_message_t *vlm_MessageAdd (vlm_message_t *a, vlm_message_t *b)
355 assert (0);
358 void vlm_MessageDelete (vlm_message_t *m)
360 assert (0);
363 vlm_message_t *vlm_MessageSimpleNew (const char *a)
365 return NULL;
368 vlm_message_t *vlm_MessageNew (const char *a, const char *fmt, ...)
370 return vlm_MessageSimpleNew (a);
373 vlm_t *__vlm_New (vlc_object_t *obj)
375 msg_Err (obj, "VLM not compiled-in!");
376 return NULL;
378 #endif /* !ENABLE_VLM */