Fortunes about QT and "hearing" video codecs
[vlc.git] / src / missing.c
blobd7d724c33524740b19cdefb1108065ba168d55a9
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 <stdnoreturn.h>
40 #include <vlc_common.h>
41 #include <assert.h>
43 #ifndef ENABLE_SOUT
44 # include <vlc_sout.h>
46 void sdp_AddMedia (struct vlc_memstream *sdp, const char *type, const char *protocol,
47 int dport, unsigned pt, bool bw_indep, unsigned bw,
48 const char *ptname, unsigned clockrate, unsigned channels,
49 const char *fmtp)
51 VLC_UNUSED (sdp); VLC_UNUSED (type); VLC_UNUSED (protocol);
52 VLC_UNUSED (dport); VLC_UNUSED (pt); VLC_UNUSED (bw_indep);
53 VLC_UNUSED (bw); VLC_UNUSED (ptname); VLC_UNUSED (clockrate);
54 VLC_UNUSED (channels); VLC_UNUSED (fmtp);
55 assert (sdp == NULL);
58 void sdp_AddAttribute (struct vlc_memstream *sdp, const char *name, const char *fmt, ...)
60 VLC_UNUSED (sdp); VLC_UNUSED (name); VLC_UNUSED (fmt);
61 assert (sdp == NULL);
64 noreturn int sout_AccessOutControl(sout_access_out_t *out, int query, ...)
66 VLC_UNUSED (out); VLC_UNUSED (query);
67 vlc_assert_unreachable ();
70 noreturn void sout_AccessOutDelete(sout_access_out_t *out)
72 VLC_UNUSED (out);
73 vlc_assert_unreachable ();
76 #undef sout_AccessOutNew
77 sout_access_out_t *sout_AccessOutNew (vlc_object_t *obj,
78 const char *access, const char *name)
80 VLC_UNUSED (access); VLC_UNUSED (name);
81 msg_Err (obj, "Output support not compiled-in!");
82 return NULL;
85 noreturn ssize_t sout_AccessOutRead(sout_access_out_t *out, block_t *block)
87 VLC_UNUSED (out); VLC_UNUSED (block);
88 vlc_assert_unreachable ();
91 noreturn int sout_AccessOutSeek(sout_access_out_t *out, off_t offset)
93 VLC_UNUSED (out); VLC_UNUSED (offset);
94 vlc_assert_unreachable ();
97 noreturn ssize_t sout_AccessOutWrite(sout_access_out_t *out, block_t *block)
99 VLC_UNUSED (out); VLC_UNUSED (block);
100 vlc_assert_unreachable ();
103 #undef sout_AnnounceRegisterSDP
104 session_descriptor_t *sout_AnnounceRegisterSDP (vlc_object_t *obj,
105 const char *sdp,
106 const char *dst)
108 VLC_UNUSED (sdp); VLC_UNUSED (dst);
109 msg_Err (obj, "SDP export not compiled-in!");
110 return NULL;
113 #undef sout_AnnounceUnRegister
114 noreturn void sout_AnnounceUnRegister(vlc_object_t *obj,
115 session_descriptor_t *d)
117 VLC_UNUSED (obj); VLC_UNUSED (d);
118 vlc_assert_unreachable ();
121 #undef sout_EncoderCreate
122 encoder_t *sout_EncoderCreate( vlc_object_t *p_this )
124 msg_Err (p_this, "Encoding support not compiled-in!");
125 return NULL;
128 noreturn sout_input_t *sout_MuxAddStream(sout_mux_t *mux,
129 const es_format_t *fmt)
131 VLC_UNUSED (mux); VLC_UNUSED (fmt);
132 vlc_assert_unreachable ();
135 noreturn void sout_MuxDelete(sout_mux_t *mux)
137 VLC_UNUSED (mux);
138 vlc_assert_unreachable ();
141 noreturn void sout_MuxDeleteStream(sout_mux_t *mux, sout_input_t *input)
143 VLC_UNUSED (mux); VLC_UNUSED (input);
144 vlc_assert_unreachable ();
147 noreturn int sout_MuxGetStream(sout_mux_t *mux, unsigned n, vlc_tick_t *date)
149 (void) mux; (void) n; (void) date;
150 vlc_assert_unreachable ();
153 noreturn sout_mux_t *sout_MuxNew(sout_instance_t *instance, const char *mux,
154 sout_access_out_t *out)
156 VLC_UNUSED (instance); VLC_UNUSED (mux); VLC_UNUSED (out);
157 vlc_assert_unreachable ();
160 noreturn int sout_MuxSendBuffer(sout_mux_t *mux, sout_input_t *input,
161 block_t *block)
163 VLC_UNUSED (mux); VLC_UNUSED (input); VLC_UNUSED (block);
164 vlc_assert_unreachable ();
167 noreturn void sout_MuxFlush(sout_mux_t *mux, sout_input_t *input)
169 VLC_UNUSED (mux); VLC_UNUSED (input);
170 vlc_assert_unreachable ();
173 noreturn void sout_StreamChainDelete(sout_stream_t *first,
174 sout_stream_t *last)
176 (void) first; (void) last;
177 vlc_assert_unreachable ();
180 noreturn sout_stream_t *sout_StreamChainNew(sout_instance_t *sout,
181 const char *chain,
182 sout_stream_t *next,
183 sout_stream_t **last)
185 (void) sout; (void) chain; (void) next; (void) last;
186 vlc_assert_unreachable ();
189 int vlc_sdp_Start (struct vlc_memstream *sdp, vlc_object_t *obj, const char *cfg,
190 const struct sockaddr *src, size_t srclen,
191 const struct sockaddr *addr, size_t addrlen)
193 VLC_UNUSED (obj); VLC_UNUSED (cfg); VLC_UNUSED (src); VLC_UNUSED (srclen);
194 VLC_UNUSED (addr); VLC_UNUSED (addrlen);
195 return 0;
197 #endif /* !ENABLE_SOUT */
199 #ifndef ENABLE_VLM
200 # include <vlc_vlm.h>
202 noreturn int vlm_Control(vlm_t *vlm, int query, ...)
204 VLC_UNUSED (query);
205 VLC_UNUSED (vlm);
206 vlc_assert_unreachable ();
209 noreturn void vlm_Delete(vlm_t *vlm)
211 VLC_UNUSED (vlm);
212 vlc_assert_unreachable ();
215 noreturn int vlm_ExecuteCommand(vlm_t *vlm, const char *cmd,
216 vlm_message_t **pm)
218 VLC_UNUSED (vlm);
219 VLC_UNUSED (cmd);
220 VLC_UNUSED (pm);
221 vlc_assert_unreachable ();
224 noreturn vlm_message_t *vlm_MessageAdd(vlm_message_t *a, vlm_message_t *b)
226 VLC_UNUSED (a);
227 VLC_UNUSED (b);
228 vlc_assert_unreachable ();
231 noreturn void vlm_MessageDelete(vlm_message_t *m)
233 VLC_UNUSED (m);
234 vlc_assert_unreachable ();
237 vlm_message_t *vlm_MessageSimpleNew (const char *a)
239 VLC_UNUSED (a);
240 return NULL;
243 vlm_message_t *vlm_MessageNew (const char *a, const char *fmt, ...)
245 VLC_UNUSED (a);
246 VLC_UNUSED (fmt);
247 return vlm_MessageSimpleNew (a);
250 #undef vlm_New
251 vlm_t *vlm_New (libvlc_int_t *obj, const char *file)
253 msg_Err (obj, "VLM not compiled-in!");
254 (void) file;
255 return NULL;
257 #endif /* !ENABLE_VLM */
259 #ifndef UPDATE_CHECK
260 # include <vlc_update.h>
262 update_t *(update_New)(vlc_object_t *obj)
264 (void) obj;
265 return NULL;
268 noreturn void update_Delete(update_t *u)
270 (void) u;
271 vlc_assert_unreachable();
274 noreturn void update_Check(update_t *u, void (*cb)(void *, bool), void *opaque)
276 (void) u; (void) cb; (void) opaque;
277 vlc_assert_unreachable();
280 noreturn bool update_NeedUpgrade(update_t *u)
282 (void) u;
283 vlc_assert_unreachable();
286 noreturn void update_Download(update_t *u, const char *dir)
288 (void) u; (void) dir;
289 vlc_assert_unreachable();
292 noreturn update_release_t *update_GetRelease(update_t *u)
294 (void) u;
295 vlc_assert_unreachable();
297 #endif /* !UPDATE_CHECK */