Qt4: more const
[vlc/vlc-acra.git] / src / missing.c
blob06c2b1b19de0ba47cacc8fdb069090af26356ba8
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 assert (0);
40 void httpd_ClientModeBidir (httpd_client_t *cl)
42 assert (0);
45 void httpd_ClientModeStream (httpd_client_t *cl)
47 assert (0);
50 httpd_file_sys_t *httpd_FileDelete (httpd_file_t *file)
52 assert (0);
55 httpd_file_t *httpd_FileNew (httpd_host_t *host,
56 const char *url, const char *content_type,
57 const char *login, const char *password,
58 const vlc_acl_t *acl,
59 httpd_file_callback_t cb, httpd_file_sys_t *data)
61 assert (0);
64 httpd_handler_sys_t *httpd_HandlerDelete (httpd_handler_t *handler)
66 assert (0);
69 httpd_handler_t *httpd_HandlerNew (httpd_host_t *host, const char *url,
70 const char *login, const char *password,
71 const vlc_acl_t *acl,
72 httpd_handler_callback_t cb,
73 httpd_handler_sys_t *data)
75 assert (0);
78 void httpd_HostDelete (httpd_host_t *h)
80 assert (0);
83 httpd_host_t *httpd_HostNew (vlc_object_t *obj, const char *host, int port)
85 return httpd_TLSHostNew (obj, host, port, NULL, NULL, NULL, NULL);
88 void httpd_MsgAdd (httpd_message_t *m, const char *name, const char *fmt, ...)
90 assert (0);
93 const char *httpd_MsgGet (const httpd_message_t *m, const char *name)
95 assert (0);
98 void httpd_RedirectDelete (httpd_redirect_t *r)
100 assert (0);
103 httpd_redirect_t *httpd_RedirectNew (httpd_host_t *host,
104 const char *dst, const char *src)
106 assert (0);
109 char *httpd_ServerIP (const httpd_client_t *client, char *ip)
111 assert (0);
114 void httpd_StreamDelete (httpd_stream_t *stream)
116 assert (0);
119 int httpd_StreamHeader (httpd_stream_t *stream, uint8_t *data, int count)
121 assert (0);
124 httpd_stream_t *httpd_StreamNew (httpd_host_t *host,
125 const char *url, const char *content_type,
126 const char *login, const char *password,
127 const vlc_acl_t *acl)
129 assert (0);
132 int httpd_StreamSend (httpd_stream_t *stream, uint8_t *data, int count)
134 assert (0);
137 httpd_host_t *httpd_TLSHostNew (vlc_object_t *obj, const char *host, int port,
138 const char *cert, const char *key,
139 const char *ca, const char *crl)
141 msg_Err (obj, "VLC httpd support not compiled-in!");
142 return NULL;
145 int httpd_UrlCatch (httpd_url_t *url, int request, httpd_callback_t cb,
146 httpd_callback_sys_t *data)
148 assert (0);
151 void httpd_UrlDelete (httpd_url_t *url)
153 assert (0);
156 httpd_url_t *httpd_UrlNew (httpd_host_t *host, const char *url,
157 const char *login, const char *password,
158 const vlc_acl_t *acl)
160 assert (0);
163 httpd_url_t *httpd_UrlNewUnique (httpd_host_t *host, const char *url,
164 const char *login, const char *password,
165 const vlc_acl_t *acl)
167 assert (0);
169 #endif /* !ENABLE_HTTPD */
171 #ifndef ENABLE_SOUT
172 # include <vlc_sout.h>
174 char *sdp_AddMedia (char **sdp, const char *type, const char *protocol,
175 int dport, unsigned pt, bool bw_indep, unsigned bw,
176 const char *ptname, unsigned clockrate, unsigned channels,
177 const char *fmtp)
179 assert (*sdp == NULL);
180 return NULL;
183 char *sdp_AddAttribute (char **sdp, const char *name, const char *fmt, ...)
185 assert (*sdp == NULL);
186 return NULL;
189 int sout_AccessOutControl (sout_access_out_t *out, int query, ...)
191 assert (0);
194 void sout_AccessOutDelete (sout_access_out_t *out)
196 assert (0);
199 #undef sout_AccessOutNew
200 sout_access_out_t *sout_AccessOutNew (vlc_object_t *obj,
201 const char *access, const char *name)
203 msg_Err (obj, "Output support not compiled-in!");
204 return NULL;
207 ssize_t sout_AccessOutRead (sout_access_out_t *out, block_t *block)
209 assert (0);
212 int sout_AccessOutSeek (sout_access_out_t *out, off_t offset)
214 assert (0);
217 ssize_t sout_AccessOutWrite (sout_access_out_t *out, block_t *block)
219 assert (0);
222 #undef sout_AnnounceRegisterSDP
223 session_descriptor_t *sout_AnnounceRegisterSDP (vlc_object_t *obj,
224 const char *sdp,
225 const char *dst,
226 announce_method_t *method)
228 msg_Err (obj, "SDP export not compiled-in!");
229 assert (method == NULL);
230 return NULL;
233 #undef sout_AnnounceUnRegister
234 sout_AnnounceUnRegister (vlc_object_t *obj, session_descriptor_t *d)
236 assert (0);
239 void sout_MethodRelease (announce_method_t *method)
241 (void)method;
244 sout_input_t *sout_MuxAddStream (sout_mux_t *mux, es_format_t *fmt)
246 assert (0);
249 void sout_MuxDelete (sout_mux_t *mux)
251 assert (0);
254 void sout_MuxDeleteStream (sout_mux_t *mux, sout_input_t *input)
256 assert (0);
259 sout_mux_t *sout_MuxNew (sout_instance_t *instance, char *mux,
260 sout_access_out_t *out)
262 assert (0);
265 void sout_MuxSendBuffer (sout_mux_t *mux, sout_input_t *input, block_t *block)
267 assert (0);
270 announce_method_t *sout_SAPMethod (void)
272 return NULL;
275 void sout_StreamDelete (sout_stream_t *stream)
277 assert (0);
280 sout_stream_t *sout_StreamNew (sout_instance_t *instance, char *chain)
282 assert (0);
285 void sout_UpdateStatistic (sout_instance_t *instance, sout_statistic_t stat,
286 int value)
288 assert (0);
291 char *vlc_sdp_Start (vlc_object_t *obj, const char *cfg,
292 const struct sockaddr *src, size_t srclen,
293 const struct sockaddr *addr, size_t addrlen)
295 return NULL;
297 #endif /* !ENABLE_SOUT */
299 #ifndef ENABLE_VLM
300 # include <vlc_vlm.h>
302 int vlm_Control (vlm_t *vlm, int query, ...)
304 assert (0);
307 void vlm_Delete (vlm_t *vlm)
309 assert (0);
312 int vlm_ExecuteCommand (vlm_t *vlm, const char *cmd, vlm_message_t **pm)
314 assert (0);
317 vlm_message_t *vlm_MessageAdd (vlm_message_t *a, vlm_message_t *b)
319 assert (0);
322 void vlm_MessageDelete (vlm_message_t *m)
324 assert (0);
327 vlm_message_t *vlm_MessageNew (const char *a, const char *fmt, ...)
329 return NULL;
332 vlm_t *__vlm_New (vlc_object_t *obj)
334 msg_Err (obj, "VLM not compiled-in!");
335 return NULL;
337 #endif /* !ENABLE_VLM */