]> git.sesse.net Git - vlc/blob - src/missing.c
src/missing: remove no longer needed stubs since the internal API is gone
[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 httpd_file_sys_t *httpd_FileDelete (httpd_file_t *file)
42 {
43     (void) file;
44     assert (0);
45 }
46
47 httpd_file_t *httpd_FileNew (httpd_host_t *host,
48                              const char *url, const char *content_type,
49                              const char *login, const char *password,
50                              httpd_file_callback_t cb, httpd_file_sys_t *data)
51 {
52     (void) host;
53     (void) url; (void) content_type;
54     (void) login; (void) password;
55     (void) cb; (void) data;
56     assert (0);
57 }
58
59 httpd_handler_sys_t *httpd_HandlerDelete (httpd_handler_t *handler)
60 {
61     (void) handler;
62     assert (0);
63 }
64
65 httpd_handler_t *httpd_HandlerNew (httpd_host_t *host, const char *url,
66                                    const char *login, const char *password,
67                                    httpd_handler_callback_t cb,
68                                    httpd_handler_sys_t *data)
69 {
70     (void) host; (void) url;
71     (void) login; (void) password;
72     (void) cb; (void) data;
73     assert (0);
74 }
75
76 void httpd_HostDelete (httpd_host_t *h)
77 {
78     (void) h;
79     assert (0);
80 }
81
82 httpd_host_t *vlc_http_HostNew (vlc_object_t *obj)
83 {
84     msg_Err (obj, "HTTP server not compiled-in!");
85     return NULL;
86 }
87
88 httpd_host_t *vlc_https_HostNew (vlc_object_t *obj)
89 {
90     msg_Err (obj, "HTTPS server not compiled-in!");
91     return NULL;
92 }
93
94 httpd_host_t *vlc_rtsp_HostNew (vlc_object_t *obj)
95 {
96     msg_Err (obj, "RTSP server not compiled-in!");
97     return NULL;
98 }
99
100 void httpd_MsgAdd (httpd_message_t *m, const char *name, const char *fmt, ...)
101 {
102     (void) m; (void) name; (void) fmt;
103     assert (0);
104 }
105
106 const char *httpd_MsgGet (const httpd_message_t *m, const char *name)
107 {
108     (void) m; (void) name;
109     assert (0);
110 }
111
112 void httpd_RedirectDelete (httpd_redirect_t *r)
113 {
114     (void) r;
115     assert (0);
116 }
117
118 httpd_redirect_t *httpd_RedirectNew (httpd_host_t *host,
119                                      const char *dst, const char *src)
120 {
121     (void) host; (void) dst; (void) src;
122     assert (0);
123 }
124
125 char *httpd_ServerIP (const httpd_client_t *client, char *ip, int *port)
126 {
127     (void) client; (void) ip; (void) port;
128     assert (0);
129 }
130
131 void httpd_StreamDelete (httpd_stream_t *stream)
132 {
133     (void) stream;
134     assert (0);
135 }
136
137 int httpd_StreamHeader (httpd_stream_t *stream, uint8_t *data, int count)
138 {
139     (void) stream; (void) data; (void) count;
140     assert (0);
141 }
142
143 httpd_stream_t *httpd_StreamNew (httpd_host_t *host,
144                                  const char *url, const char *content_type,
145                                  const char *login, const char *password)
146 {
147     (void) host; (void) url; (void) content_type;
148     (void) login; (void) password;
149     assert (0);
150 }
151
152 int httpd_StreamSend (httpd_stream_t *stream, const block_t *p_block)
153 {
154     (void) stream; (void) p_block;
155     assert (0);
156 }
157
158 int httpd_StreamSetHTTPHeaders (httpd_stream_t * stream,
159                                 httpd_header * headers,
160                                 size_t i_headers)
161 {
162     (void) stream; (void) headers; (void) i_headers;
163     assert (0);
164 }
165
166 int httpd_UrlCatch (httpd_url_t *url, int request, httpd_callback_t cb,
167                     httpd_callback_sys_t *data)
168 {
169     (void) url; (void) request; (void) cb; (void) data;
170     assert (0);
171 }
172
173 void httpd_UrlDelete (httpd_url_t *url)
174 {
175     (void) url;
176     assert (0);
177 }
178
179 httpd_url_t *httpd_UrlNew (httpd_host_t *host, const char *url,
180                            const char *login, const char *password)
181 {
182     (void) host; (void) url; (void) login; (void) password;
183     assert (0);
184 }
185 #endif /* !ENABLE_HTTPD */
186
187 #ifndef ENABLE_SOUT
188 # include <vlc_sout.h>
189
190 char *sdp_AddMedia (char **sdp, const char *type, const char *protocol,
191                     int dport, unsigned pt, bool bw_indep, unsigned bw,
192                     const char *ptname, unsigned clockrate, unsigned channels,
193                     const char *fmtp)
194 {
195     assert (*sdp == NULL);
196     return NULL;
197 }
198
199 char *sdp_AddAttribute (char **sdp, const char *name, const char *fmt, ...)
200 {
201     assert (*sdp == NULL);
202     return NULL;
203 }
204
205 int sout_AccessOutControl (sout_access_out_t *out, int query, ...)
206 {
207     assert (0);
208 }
209
210 void sout_AccessOutDelete (sout_access_out_t *out)
211 {
212     assert (0);
213 }
214
215 #undef sout_AccessOutNew
216 sout_access_out_t *sout_AccessOutNew (vlc_object_t *obj,
217                                       const char *access, const char *name)
218 {
219     msg_Err (obj, "Output support not compiled-in!");
220     return NULL;
221 }
222
223 ssize_t sout_AccessOutRead (sout_access_out_t *out, block_t *block)
224 {
225     assert (0);
226 }
227
228 int sout_AccessOutSeek (sout_access_out_t *out, off_t offset)
229 {
230     assert (0);
231 }
232
233 ssize_t sout_AccessOutWrite (sout_access_out_t *out, block_t *block)
234 {
235     assert (0);
236 }
237
238 #undef sout_AnnounceRegisterSDP
239 session_descriptor_t *sout_AnnounceRegisterSDP (vlc_object_t *obj,
240                                                 const char *sdp,
241                                                 const char *dst)
242 {
243     msg_Err (obj, "SDP export not compiled-in!");
244     return NULL;
245 }
246
247 #undef sout_AnnounceUnRegister
248 sout_AnnounceUnRegister (vlc_object_t *obj, session_descriptor_t *d)
249 {
250     assert (0);
251 }
252
253 #undef sout_EncoderCreate
254 encoder_t *sout_EncoderCreate( vlc_object_t *p_this )
255 {
256     msg_Err (p_this, "Encoding support not compiled-in!");
257     return NULL;
258 }
259
260 sout_input_t *sout_MuxAddStream (sout_mux_t *mux, es_format_t *fmt)
261 {
262     assert (0);
263 }
264
265 void sout_MuxDelete (sout_mux_t *mux)
266 {
267     assert (0);
268 }
269
270 void sout_MuxDeleteStream (sout_mux_t *mux, sout_input_t *input)
271 {
272     assert (0);
273 }
274
275 int sout_MuxGetStream (sout_mux_t *p_mux, int i_blocks, mtime_t *pi_dts)
276 {
277     assert (0);
278 }
279
280 sout_mux_t *sout_MuxNew (sout_instance_t *instance, const char *mux,
281                          sout_access_out_t *out)
282 {
283     assert (0);
284 }
285
286 int sout_MuxSendBuffer (sout_mux_t *mux, sout_input_t *input, block_t *block)
287 {
288     assert (0);
289 }
290
291 void sout_StreamChainDelete (sout_stream_t *p_first, sout_stream_t *p_last)
292 {
293     assert (0);
294 }
295
296 sout_stream_t *sout_StreamChainNew (sout_instance_t *p_sout, char *psz_chain,
297                                     sout_stream_t *p_next,
298                                     sout_stream_t **pp_last)
299 {
300     assert (0);
301 }
302
303 char *vlc_sdp_Start (vlc_object_t *obj, const char *cfg,
304                      const struct sockaddr *src, size_t srclen,
305                      const struct sockaddr *addr, size_t addrlen)
306 {
307     return NULL;
308 }
309 #endif /* !ENABLE_SOUT */
310
311 #ifndef ENABLE_VLM
312 # include <vlc_vlm.h>
313
314 int vlm_Control (vlm_t *vlm, int query, ...)
315 {
316     VLC_UNUSED (vlm);
317     assert (0);
318 }
319
320 void vlm_Delete (vlm_t *vlm)
321 {
322     VLC_UNUSED (vlm);
323     assert (0);
324 }
325
326 int vlm_ExecuteCommand (vlm_t *vlm, const char *cmd, vlm_message_t **pm)
327 {
328     VLC_UNUSED (vlm);
329     VLC_UNUSED (cmd);
330     VLC_UNUSED (pm);
331     assert (0);
332 }
333
334 vlm_message_t *vlm_MessageAdd (vlm_message_t *a, vlm_message_t *b)
335 {
336     VLC_UNUSED (a);
337     VLC_UNUSED (b);
338     assert (0);
339 }
340
341 void vlm_MessageDelete (vlm_message_t *m)
342 {
343     VLC_UNUSED (m);
344     assert (0);
345 }
346
347 vlm_message_t *vlm_MessageSimpleNew (const char *a)
348 {
349     VLC_UNUSED (a);
350     return NULL;
351 }
352
353 vlm_message_t *vlm_MessageNew (const char *a, const char *fmt, ...)
354 {
355     VLC_UNUSED (a);
356     VLC_UNUSED (fmt);
357     return vlm_MessageSimpleNew (a);
358 }
359
360 #undef vlm_New
361 vlm_t *vlm_New (vlc_object_t *obj)
362 {
363      msg_Err (obj, "VLM not compiled-in!");
364      return NULL;
365 }
366 #endif /* !ENABLE_VLM */