demux: wav: skip header in ChunkFind
[vlc.git] / src / missing.c
blob982df95d3672a7929634b82874b93e0bf2bd0645
1 /*****************************************************************************
2 * missing.c: missing libvlccore symbols
3 *****************************************************************************
4 * Copyright (C) 2008-2011 Rémi Denis-Courmont
5 * Copyright (C) 2009-2014 VLC authors and VideoLAN
7 * Authors: Rémi Denis-Courmont
8 * Pierre Ynard <linkfanel # yahoo fr>
9 * Toralf Niebuhr <gmthor85 # aim com>
10 * Felix Paul Kühne <fkuehne # videolan org>
11 * Jean-Paul Saman <jpsaman # videolan org>
12 * Antoine Cellerier <dionoea # videolan org>
14 * This program is free software; you can redistribute it and/or modify it
15 * under the terms of the GNU Lesser General Public License as published by
16 * the Free Software Foundation; either version 2.1 of the License, or
17 * (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU Lesser General Public License for more details.
24 * You should have received a copy of the GNU Lesser General Public License
25 * along with this program; if not, write to the Free Software Foundation,
26 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
27 *****************************************************************************/
29 /** \file
30 * This file contains dummy replacement API for disabled features
33 #ifdef HAVE_CONFIG_H
34 # include "config.h"
35 #endif
37 #include <stdnoreturn.h>
39 #include <vlc_common.h>
40 #include <assert.h>
42 #ifndef ENABLE_SOUT
43 # include <vlc_sout.h>
45 void sdp_AddMedia (struct vlc_memstream *sdp, const char *type, const char *protocol,
46 int dport, unsigned pt, bool bw_indep, unsigned bw,
47 const char *ptname, unsigned clockrate, unsigned channels,
48 const char *fmtp)
50 VLC_UNUSED (sdp); VLC_UNUSED (type); VLC_UNUSED (protocol);
51 VLC_UNUSED (dport); VLC_UNUSED (pt); VLC_UNUSED (bw_indep);
52 VLC_UNUSED (bw); VLC_UNUSED (ptname); VLC_UNUSED (clockrate);
53 VLC_UNUSED (channels); VLC_UNUSED (fmtp);
54 assert (sdp == NULL);
57 void sdp_AddAttribute (struct vlc_memstream *sdp, const char *name, const char *fmt, ...)
59 VLC_UNUSED (sdp); VLC_UNUSED (name); VLC_UNUSED (fmt);
60 assert (sdp == NULL);
63 noreturn int sout_AccessOutControl(sout_access_out_t *out, int query, ...)
65 VLC_UNUSED (out); VLC_UNUSED (query);
66 vlc_assert_unreachable ();
69 noreturn void sout_AccessOutDelete(sout_access_out_t *out)
71 VLC_UNUSED (out);
72 vlc_assert_unreachable ();
75 #undef sout_AccessOutNew
76 sout_access_out_t *sout_AccessOutNew (vlc_object_t *obj,
77 const char *access, const char *name)
79 VLC_UNUSED (access); VLC_UNUSED (name);
80 msg_Err (obj, "Output support not compiled-in!");
81 return NULL;
84 noreturn ssize_t sout_AccessOutRead(sout_access_out_t *out, block_t *block)
86 VLC_UNUSED (out); VLC_UNUSED (block);
87 vlc_assert_unreachable ();
90 noreturn int sout_AccessOutSeek(sout_access_out_t *out, off_t offset)
92 VLC_UNUSED (out); VLC_UNUSED (offset);
93 vlc_assert_unreachable ();
96 noreturn ssize_t sout_AccessOutWrite(sout_access_out_t *out, block_t *block)
98 VLC_UNUSED (out); VLC_UNUSED (block);
99 vlc_assert_unreachable ();
102 #undef sout_AnnounceRegisterSDP
103 session_descriptor_t *sout_AnnounceRegisterSDP (vlc_object_t *obj,
104 const char *sdp,
105 const char *dst)
107 VLC_UNUSED (sdp); VLC_UNUSED (dst);
108 msg_Err (obj, "SDP export not compiled-in!");
109 return NULL;
112 #undef sout_AnnounceUnRegister
113 noreturn void sout_AnnounceUnRegister(vlc_object_t *obj,
114 session_descriptor_t *d)
116 VLC_UNUSED (obj); VLC_UNUSED (d);
117 vlc_assert_unreachable ();
120 #undef sout_EncoderCreate
121 encoder_t *sout_EncoderCreate( vlc_object_t *p_this, size_t owner_size )
123 msg_Err (p_this, "Encoding support not compiled-in!");
124 return NULL;
127 noreturn sout_input_t *sout_MuxAddStream(sout_mux_t *mux,
128 const es_format_t *fmt)
130 VLC_UNUSED (mux); VLC_UNUSED (fmt);
131 vlc_assert_unreachable ();
134 noreturn void sout_MuxDelete(sout_mux_t *mux)
136 VLC_UNUSED (mux);
137 vlc_assert_unreachable ();
140 noreturn void sout_MuxDeleteStream(sout_mux_t *mux, sout_input_t *input)
142 VLC_UNUSED (mux); VLC_UNUSED (input);
143 vlc_assert_unreachable ();
146 noreturn int sout_MuxGetStream(sout_mux_t *mux, unsigned n, vlc_tick_t *date)
148 (void) mux; (void) n; (void) date;
149 vlc_assert_unreachable ();
152 noreturn sout_mux_t *sout_MuxNew(sout_access_out_t *out, const char *mux)
154 VLC_UNUSED(out); VLC_UNUSED(mux);
155 vlc_assert_unreachable ();
158 noreturn int sout_MuxSendBuffer(sout_mux_t *mux, sout_input_t *input,
159 block_t *block)
161 VLC_UNUSED (mux); VLC_UNUSED (input); VLC_UNUSED (block);
162 vlc_assert_unreachable ();
165 noreturn void sout_MuxFlush(sout_mux_t *mux, sout_input_t *input)
167 VLC_UNUSED (mux); VLC_UNUSED (input);
168 vlc_assert_unreachable ();
171 noreturn void sout_StreamChainDelete(sout_stream_t *first,
172 sout_stream_t *last)
174 (void) first; (void) last;
175 vlc_assert_unreachable ();
178 noreturn sout_stream_t *sout_StreamChainNew(sout_instance_t *sout,
179 const char *chain,
180 sout_stream_t *next,
181 sout_stream_t **last)
183 (void) sout; (void) chain; (void) next; (void) last;
184 vlc_assert_unreachable ();
187 int vlc_sdp_Start (struct vlc_memstream *sdp, vlc_object_t *obj, const char *cfg,
188 const struct sockaddr *src, size_t srclen,
189 const struct sockaddr *addr, size_t addrlen)
191 VLC_UNUSED (obj); VLC_UNUSED (cfg); VLC_UNUSED (src); VLC_UNUSED (srclen);
192 VLC_UNUSED (addr); VLC_UNUSED (addrlen);
193 return 0;
195 #endif /* !ENABLE_SOUT */
197 #ifndef ENABLE_VLM
198 # include <vlc_vlm.h>
200 noreturn int vlm_Control(vlm_t *vlm, int query, ...)
202 VLC_UNUSED (query);
203 VLC_UNUSED (vlm);
204 vlc_assert_unreachable ();
207 noreturn void vlm_Delete(vlm_t *vlm)
209 VLC_UNUSED (vlm);
210 vlc_assert_unreachable ();
213 noreturn int vlm_ExecuteCommand(vlm_t *vlm, const char *cmd,
214 vlm_message_t **pm)
216 VLC_UNUSED (vlm);
217 VLC_UNUSED (cmd);
218 VLC_UNUSED (pm);
219 vlc_assert_unreachable ();
222 noreturn vlm_message_t *vlm_MessageAdd(vlm_message_t *a, vlm_message_t *b)
224 VLC_UNUSED (a);
225 VLC_UNUSED (b);
226 vlc_assert_unreachable ();
229 noreturn void vlm_MessageDelete(vlm_message_t *m)
231 VLC_UNUSED (m);
232 vlc_assert_unreachable ();
235 vlm_message_t *vlm_MessageSimpleNew (const char *a)
237 VLC_UNUSED (a);
238 return NULL;
241 vlm_message_t *vlm_MessageNew (const char *a, const char *fmt, ...)
243 VLC_UNUSED (a);
244 VLC_UNUSED (fmt);
245 return vlm_MessageSimpleNew (a);
248 #undef vlm_New
249 vlm_t *vlm_New (libvlc_int_t *obj, const char *file)
251 msg_Err (obj, "VLM not compiled-in!");
252 (void) file;
253 return NULL;
255 #endif /* !ENABLE_VLM */
257 #ifndef UPDATE_CHECK
258 # include <vlc_update.h>
260 update_t *(update_New)(vlc_object_t *obj)
262 (void) obj;
263 return NULL;
266 noreturn void update_Delete(update_t *u)
268 (void) u;
269 vlc_assert_unreachable();
272 noreturn void update_Check(update_t *u, void (*cb)(void *, bool), void *opaque)
274 (void) u; (void) cb; (void) opaque;
275 vlc_assert_unreachable();
278 noreturn bool update_NeedUpgrade(update_t *u)
280 (void) u;
281 vlc_assert_unreachable();
284 noreturn void update_Download(update_t *u, const char *dir)
286 (void) u; (void) dir;
287 vlc_assert_unreachable();
290 noreturn update_release_t *update_GetRelease(update_t *u)
292 (void) u;
293 vlc_assert_unreachable();
295 #endif /* !UPDATE_CHECK */
297 #include <vlc_threads.h>
298 #if defined(LIBVLC_USE_PTHREAD_CLEANUP)
299 noreturn void vlc_control_cancel (vlc_cleanup_t *cleaner)
301 (void) cleaner;
302 vlc_assert_unreachable ();
304 #endif