]> git.sesse.net Git - vlc/blob - src/missing.c
Add the sout stubs
[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 session_descriptor_t *sout_AnnounceRegisterSDP (sout_instance_t *instance,
223                                                 const char *sdp,
224                                                 const char *dst,
225                                                 announce_method_t *method)
226 {
227     assert (method == NULL);
228     return NULL;
229 }
230
231 sout_AnnounceUnRegister (sout_instance_t *instance, session_descriptor_t *d)
232 {
233     assert (0);
234 }
235
236 void sout_MethodRelease (announce_method_t *method)
237 {
238     (void)method;
239 }
240
241 sout_input_t *sout_MuxAddStream (sout_mux_t *mux, es_format_t *fmt)
242 {
243     assert (0);
244 }
245
246 void sout_MuxDelete (sout_mux_t *mux)
247 {
248     assert (0);
249 }
250
251 void sout_MuxDeleteStream (sout_mux_t *mux, sout_input_t *input)
252 {
253     assert (0);
254 }
255
256 sout_mux_t *sout_MuxNew (sout_instance_t *instance, char *mux,
257                          sout_access_out_t *out)
258 {
259     assert (0);
260 }
261
262 void sout_MuxSendBuffer (sout_mux_t *mux, sout_input_t *input, block_t *block)
263 {
264     assert (0);
265 }
266
267 announce_method_t *sout_SAPMethod (void)
268 {
269     return NULL;
270 }
271
272 void sout_StreamDelete (sout_stream_t *stream)
273 {
274     assert (0);
275 }
276
277 sout_stream_t *sout_StreamNew (sout_instance_t *instance, char *chain)
278 {
279     assert (0);
280 }
281
282 void sout_UpdateStatistic (sout_instance_t *instance, sout_statistic_t stat,
283                            int value)
284 {
285     assert (0);
286 }
287
288 char *vlc_sdp_Start (vlc_object_t *obj, const char *cfg,
289                      const struct sockaddr *src, size_t srclen,
290                      const struct sockaddr *addr, size_t addrlen)
291 {
292     return NULL;
293 }
294
295 # ifndef ENABLE_VLM
296 #  include <vlc_vlm.h>
297
298 int vlm_Control (vlm_t *vlm, int query, ...)
299 {
300     assert (0);
301 }
302
303 void vlm_Delete (vlm_t *vlm)
304 {
305     assert (0);
306 }
307
308 int vlm_ExecuteCommand (vlm_t *vlm, const char *cmd, vlm_message_t **pm)
309 {
310     assert (0);
311 }
312
313 vlm_message_t *vlm_MessageAdd (vlm_message_t *a, vlm_message_t *b)
314 {
315     assert (0);
316 }
317
318 void vlm_MessageDelete (vlm_message_t *m)
319 {
320     assert (0);
321 }
322
323 vlm_message_t *vlm_MessageNew (const char *a, const char *fmt, ...)
324 {
325     return NULL;
326 }
327
328 vlm_t *__vlm_New (vlc_object_t *obj)
329 {
330      msg_Err (obj, "VLM not compiled-in!");
331      return NULL;
332 }
333
334 # endif /* !ENABLE_VLM */
335 #endif /* !ENABLE_SOUT */