contrib: soxr: enable by default
[vlc.git] / src / missing.c
blob59a4770a96fb0423963729f9f371882acbae0196
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
6 * $Id$
8 * Authors: Rémi Denis-Courmont <rem # videolan : org>
9 * Pierre Ynard <linkfanel # yahoo fr>
10 * Toralf Niebuhr <gmthor85 # aim com>
11 * Felix Paul Kühne <fkuehne # videolan org>
12 * Jean-Paul Saman <jpsaman # videolan org>
13 * Antoine Cellerier <dionoea # videolan org>
15 * This program is free software; you can redistribute it and/or modify it
16 * under the terms of the GNU Lesser General Public License as published by
17 * the Free Software Foundation; either version 2.1 of the License, or
18 * (at your option) any later version.
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU Lesser General Public License for more details.
25 * You should have received a copy of the GNU Lesser General Public License
26 * along with this program; if not, write to the Free Software Foundation,
27 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
28 *****************************************************************************/
30 /** \file
31 * This file contains dummy replacement API for disabled features
34 #ifdef HAVE_CONFIG_H
35 # include "config.h"
36 #endif
38 #include <vlc_common.h>
39 #include <assert.h>
41 #ifndef ENABLE_SOUT
42 # include <vlc_sout.h>
44 void sdp_AddMedia (struct vlc_memstream *sdp, const char *type, const char *protocol,
45 int dport, unsigned pt, bool bw_indep, unsigned bw,
46 const char *ptname, unsigned clockrate, unsigned channels,
47 const char *fmtp)
49 VLC_UNUSED (sdp); VLC_UNUSED (type); VLC_UNUSED (protocol);
50 VLC_UNUSED (dport); VLC_UNUSED (pt); VLC_UNUSED (bw_indep);
51 VLC_UNUSED (bw); VLC_UNUSED (ptname); VLC_UNUSED (clockrate);
52 VLC_UNUSED (channels); VLC_UNUSED (fmtp);
53 assert (sdp == NULL);
56 void sdp_AddAttribute (struct vlc_memstream *sdp, const char *name, const char *fmt, ...)
58 VLC_UNUSED (sdp); VLC_UNUSED (name); VLC_UNUSED (fmt);
59 assert (sdp == NULL);
62 int sout_AccessOutControl (sout_access_out_t *out, int query, ...)
64 VLC_UNUSED (out); VLC_UNUSED (query);
65 vlc_assert_unreachable ();
68 void sout_AccessOutDelete (sout_access_out_t *out)
70 VLC_UNUSED (out);
71 vlc_assert_unreachable ();
74 #undef sout_AccessOutNew
75 sout_access_out_t *sout_AccessOutNew (vlc_object_t *obj,
76 const char *access, const char *name)
78 VLC_UNUSED (access); VLC_UNUSED (name);
79 msg_Err (obj, "Output support not compiled-in!");
80 return NULL;
83 ssize_t sout_AccessOutRead (sout_access_out_t *out, block_t *block)
85 VLC_UNUSED (out); VLC_UNUSED (block);
86 vlc_assert_unreachable ();
89 int sout_AccessOutSeek (sout_access_out_t *out, off_t offset)
91 VLC_UNUSED (out); VLC_UNUSED (offset);
92 vlc_assert_unreachable ();
95 ssize_t sout_AccessOutWrite (sout_access_out_t *out, block_t *block)
97 VLC_UNUSED (out); VLC_UNUSED (block);
98 vlc_assert_unreachable ();
101 #undef sout_AnnounceRegisterSDP
102 session_descriptor_t *sout_AnnounceRegisterSDP (vlc_object_t *obj,
103 const char *sdp,
104 const char *dst)
106 VLC_UNUSED (sdp); VLC_UNUSED (dst);
107 msg_Err (obj, "SDP export not compiled-in!");
108 return NULL;
111 #undef sout_AnnounceUnRegister
112 void sout_AnnounceUnRegister (vlc_object_t *obj, session_descriptor_t *d)
114 VLC_UNUSED (obj); VLC_UNUSED (d);
115 vlc_assert_unreachable ();
118 #undef sout_EncoderCreate
119 encoder_t *sout_EncoderCreate( vlc_object_t *p_this )
121 msg_Err (p_this, "Encoding support not compiled-in!");
122 return NULL;
125 sout_input_t *sout_MuxAddStream( sout_mux_t *mux, const es_format_t *fmt )
127 VLC_UNUSED (mux); VLC_UNUSED (fmt);
128 vlc_assert_unreachable ();
131 void sout_MuxDelete (sout_mux_t *mux)
133 VLC_UNUSED (mux);
134 vlc_assert_unreachable ();
137 void sout_MuxDeleteStream (sout_mux_t *mux, sout_input_t *input)
139 VLC_UNUSED (mux); VLC_UNUSED (input);
140 vlc_assert_unreachable ();
143 int sout_MuxGetStream (sout_mux_t *p_mux, unsigned int i_blocks, mtime_t *pi_dts)
145 VLC_UNUSED (p_mux); VLC_UNUSED (i_blocks); VLC_UNUSED (pi_dts);
146 vlc_assert_unreachable ();
149 sout_mux_t *sout_MuxNew (sout_instance_t *instance, const char *mux,
150 sout_access_out_t *out)
152 VLC_UNUSED (instance); VLC_UNUSED (mux); VLC_UNUSED (out);
153 vlc_assert_unreachable ();
156 int sout_MuxSendBuffer (sout_mux_t *mux, sout_input_t *input, block_t *block)
158 VLC_UNUSED (mux); VLC_UNUSED (input); VLC_UNUSED (block);
159 vlc_assert_unreachable ();
162 void sout_MuxFlush( sout_mux_t *mux, sout_input_t *input )
164 VLC_UNUSED (mux); VLC_UNUSED (input);
165 vlc_assert_unreachable ();
168 void sout_StreamChainDelete (sout_stream_t *p_first, sout_stream_t *p_last)
170 VLC_UNUSED (p_first); VLC_UNUSED (p_last);
171 vlc_assert_unreachable ();
174 sout_stream_t *sout_StreamChainNew (sout_instance_t *p_sout, const char *psz_chain,
175 sout_stream_t *p_next,
176 sout_stream_t **pp_last)
178 VLC_UNUSED (p_sout); VLC_UNUSED (psz_chain); VLC_UNUSED (p_next);
179 VLC_UNUSED (pp_last);
180 vlc_assert_unreachable ();
183 int vlc_sdp_Start (struct vlc_memstream *sdp, vlc_object_t *obj, const char *cfg,
184 const struct sockaddr *src, size_t srclen,
185 const struct sockaddr *addr, size_t addrlen)
187 VLC_UNUSED (obj); VLC_UNUSED (cfg); VLC_UNUSED (src); VLC_UNUSED (srclen);
188 VLC_UNUSED (addr); VLC_UNUSED (addrlen);
189 return 0;
191 #endif /* !ENABLE_SOUT */
193 #ifndef ENABLE_VLM
194 # include <vlc_vlm.h>
196 int vlm_Control (vlm_t *vlm, int query, ...)
198 VLC_UNUSED (query);
199 VLC_UNUSED (vlm);
200 vlc_assert_unreachable ();
203 void vlm_Delete (vlm_t *vlm)
205 VLC_UNUSED (vlm);
206 vlc_assert_unreachable ();
209 int vlm_ExecuteCommand (vlm_t *vlm, const char *cmd, vlm_message_t **pm)
211 VLC_UNUSED (vlm);
212 VLC_UNUSED (cmd);
213 VLC_UNUSED (pm);
214 vlc_assert_unreachable ();
217 vlm_message_t *vlm_MessageAdd (vlm_message_t *a, vlm_message_t *b)
219 VLC_UNUSED (a);
220 VLC_UNUSED (b);
221 vlc_assert_unreachable ();
224 void vlm_MessageDelete (vlm_message_t *m)
226 VLC_UNUSED (m);
227 vlc_assert_unreachable ();
230 vlm_message_t *vlm_MessageSimpleNew (const char *a)
232 VLC_UNUSED (a);
233 return NULL;
236 vlm_message_t *vlm_MessageNew (const char *a, const char *fmt, ...)
238 VLC_UNUSED (a);
239 VLC_UNUSED (fmt);
240 return vlm_MessageSimpleNew (a);
243 #undef vlm_New
244 vlm_t *vlm_New (vlc_object_t *obj)
246 msg_Err (obj, "VLM not compiled-in!");
247 return NULL;
249 #endif /* !ENABLE_VLM */
251 #ifndef UPDATE_CHECK
252 # include <vlc_update.h>
254 update_t *(update_New)(vlc_object_t *obj)
256 (void) obj;
257 return NULL;
260 void update_Delete(update_t *u)
262 (void) u;
263 vlc_assert_unreachable();
266 void update_Check(update_t *u, void (*cb)(void *, bool), void *opaque)
268 (void) u; (void) cb; (void) opaque;
269 vlc_assert_unreachable();
272 bool update_NeedUpgrade(update_t *u)
274 (void) u;
275 vlc_assert_unreachable();
278 void update_Download(update_t *u, const char *dir)
280 (void) u; (void) dir;
281 vlc_assert_unreachable();
284 update_release_t *update_GetRelease(update_t *u)
286 (void) u;
287 vlc_assert_unreachable();
289 #endif /* !UPDATE_CHECK */