]> git.sesse.net Git - vlc/blob - src/missing.c
Fix --disable-vlm --enable-sout
[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
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.
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 General Public License for more details.
15  *
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  *****************************************************************************/
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)
36 {
37     assert (0);
38 }
39
40 void httpd_ClientModeBidir (httpd_client_t *cl)
41 {
42     assert (0);
43 }
44
45 void httpd_ClientModeStream (httpd_client_t *cl)
46 {
47     assert (0);
48 }
49
50 httpd_file_sys_t *httpd_FileDelete (httpd_file_t *file)
51 {
52     assert (0);
53 }
54
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)
60 {
61     assert (0);
62 }
63
64 httpd_handler_sys_t *httpd_HandlerDelete (httpd_handler_t *handler)
65 {
66     assert (0);
67 }
68
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)
74 {
75     assert (0);
76 }
77
78 void httpd_HostDelete (httpd_host_t *h)
79 {
80     assert (0);
81 }
82
83 httpd_host_t *httpd_HostNew (vlc_object_t *obj, const char *host, int port)
84 {
85     return httpd_TLSHostNew (obj, host, port, NULL, NULL, NULL, NULL);
86 }
87
88 void httpd_MsgAdd (httpd_message_t *m, const char *name, const char *fmt, ...)
89 {
90     assert (0);
91 }
92
93 const char *httpd_MsgGet (const httpd_message_t *m, const char *name)
94 {
95     assert (0);
96 }
97
98 void httpd_RedirectDelete (httpd_redirect_t *r)
99 {
100     assert (0);
101 }
102
103 httpd_redirect_t *httpd_RedirectNew (httpd_host_t *host,
104                                      const char *dst, const char *src)
105 {
106     assert (0);
107 }
108
109 char *httpd_ServerIP (const httpd_client_t *client, char *ip)
110 {
111     assert (0);
112 }
113
114 void httpd_StreamDelete (httpd_stream_t *stream)
115 {
116     assert (0);
117 }
118
119 int httpd_StreamHeader (httpd_stream_t *stream, uint8_t *data, int count)
120 {
121     assert (0);
122 }
123
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)
128 {
129     assert (0);
130 }
131
132 int httpd_StreamSend (httpd_stream_t *stream, uint8_t *data, int count)
133 {
134     assert (0);
135 }
136
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)
140 {
141      msg_Err (obj, "VLC httpd support not compiled-in!");
142      return NULL;
143 }
144
145 int httpd_UrlCatch (httpd_url_t *url, int request, httpd_callback_t cb,
146                     httpd_callback_sys_t *data)
147 {
148     assert (0);
149 }
150
151 void httpd_UrlDelete (httpd_url_t *url)
152 {
153     assert (0);
154 }
155
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)
159 {
160     assert (0);
161 }
162
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)
166 {
167     assert (0);
168 }
169 #endif /* !ENABLE_HTTPD */
170
171 #ifndef ENABLE_SOUT
172 # include <vlc_sout.h>
173
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)
178 {
179     assert (*sdp == NULL);
180     return NULL;
181 }
182
183 char *sdp_AddAttribute (char **sdp, const char *name, const char *fmt, ...)
184 {
185     assert (*sdp == NULL);
186     return NULL;
187 }
188
189 int sout_AccessOutControl (sout_access_out_t *out, int query, ...)
190 {
191     assert (0);
192 }
193
194 void sout_AccessOutDelete (sout_access_out_t *out)
195 {
196     assert (0);
197 }
198
199 #undef sout_AccessOutNew
200 sout_access_out_t *sout_AccessOutNew (vlc_object_t *obj,
201                                       const char *access, const char *name)
202 {
203     msg_Err (obj, "Output support not compiled-in!");
204     return NULL;
205 }
206
207 ssize_t sout_AccessOutRead (sout_access_out_t *out, block_t *block)
208 {
209     assert (0);
210 }
211
212 int sout_AccessOutSeek (sout_access_out_t *out, off_t offset)
213 {
214     assert (0);
215 }
216
217 ssize_t sout_AccessOutWrite (sout_access_out_t *out, block_t *block)
218 {
219     assert (0);
220 }
221
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)
227 {
228     msg_Err (obj, "SDP export not compiled-in!");
229     assert (method == NULL);
230     return NULL;
231 }
232
233 #undef sout_AnnounceUnRegister
234 sout_AnnounceUnRegister (vlc_object_t *obj, session_descriptor_t *d)
235 {
236     assert (0);
237 }
238
239 void sout_MethodRelease (announce_method_t *method)
240 {
241     (void)method;
242 }
243
244 sout_input_t *sout_MuxAddStream (sout_mux_t *mux, es_format_t *fmt)
245 {
246     assert (0);
247 }
248
249 void sout_MuxDelete (sout_mux_t *mux)
250 {
251     assert (0);
252 }
253
254 void sout_MuxDeleteStream (sout_mux_t *mux, sout_input_t *input)
255 {
256     assert (0);
257 }
258
259 sout_mux_t *sout_MuxNew (sout_instance_t *instance, char *mux,
260                          sout_access_out_t *out)
261 {
262     assert (0);
263 }
264
265 void sout_MuxSendBuffer (sout_mux_t *mux, sout_input_t *input, block_t *block)
266 {
267     assert (0);
268 }
269
270 announce_method_t *sout_SAPMethod (void)
271 {
272     return NULL;
273 }
274
275 void sout_StreamDelete (sout_stream_t *stream)
276 {
277     assert (0);
278 }
279
280 sout_stream_t *sout_StreamNew (sout_instance_t *instance, char *chain)
281 {
282     assert (0);
283 }
284
285 void sout_UpdateStatistic (sout_instance_t *instance, sout_statistic_t stat,
286                            int value)
287 {
288     assert (0);
289 }
290
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)
294 {
295     return NULL;
296 }
297 #endif /* !ENABLE_SOUT */
298
299 #ifndef ENABLE_VLM
300 # include <vlc_vlm.h>
301
302 int vlm_Control (vlm_t *vlm, int query, ...)
303 {
304     assert (0);
305 }
306
307 void vlm_Delete (vlm_t *vlm)
308 {
309     assert (0);
310 }
311
312 int vlm_ExecuteCommand (vlm_t *vlm, const char *cmd, vlm_message_t **pm)
313 {
314     assert (0);
315 }
316
317 vlm_message_t *vlm_MessageAdd (vlm_message_t *a, vlm_message_t *b)
318 {
319     assert (0);
320 }
321
322 void vlm_MessageDelete (vlm_message_t *m)
323 {
324     assert (0);
325 }
326
327 vlm_message_t *vlm_MessageNew (const char *a, const char *fmt, ...)
328 {
329     return NULL;
330 }
331
332 vlm_t *__vlm_New (vlc_object_t *obj)
333 {
334      msg_Err (obj, "VLM not compiled-in!");
335      return NULL;
336 }
337 #endif /* !ENABLE_VLM */