qt/qml_menu_wrapper: Add group support
[vlc.git] / src / missing.c
blob46baa65214a51254647f9b0c825d4ce0eddc5096
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 noreturn int sout_AccessOutControl(sout_access_out_t *out, int query, ...)
47 VLC_UNUSED (out); VLC_UNUSED (query);
48 vlc_assert_unreachable ();
51 noreturn void sout_AccessOutDelete(sout_access_out_t *out)
53 VLC_UNUSED (out);
54 vlc_assert_unreachable ();
57 #undef sout_AccessOutNew
58 sout_access_out_t *sout_AccessOutNew (vlc_object_t *obj,
59 const char *access, const char *name)
61 VLC_UNUSED (access); VLC_UNUSED (name);
62 msg_Err (obj, "Output support not compiled-in!");
63 return NULL;
66 noreturn ssize_t sout_AccessOutRead(sout_access_out_t *out, block_t *block)
68 VLC_UNUSED (out); VLC_UNUSED (block);
69 vlc_assert_unreachable ();
72 noreturn int sout_AccessOutSeek(sout_access_out_t *out, off_t offset)
74 VLC_UNUSED (out); VLC_UNUSED (offset);
75 vlc_assert_unreachable ();
78 noreturn ssize_t sout_AccessOutWrite(sout_access_out_t *out, block_t *block)
80 VLC_UNUSED (out); VLC_UNUSED (block);
81 vlc_assert_unreachable ();
84 #undef sout_AnnounceRegisterSDP
85 session_descriptor_t *sout_AnnounceRegisterSDP (vlc_object_t *obj,
86 const char *sdp,
87 const char *dst)
89 VLC_UNUSED (sdp); VLC_UNUSED (dst);
90 msg_Err (obj, "SDP export not compiled-in!");
91 return NULL;
94 #undef sout_AnnounceUnRegister
95 noreturn void sout_AnnounceUnRegister(vlc_object_t *obj,
96 session_descriptor_t *d)
98 VLC_UNUSED (obj); VLC_UNUSED (d);
99 vlc_assert_unreachable ();
102 #undef sout_EncoderCreate
103 encoder_t *sout_EncoderCreate( vlc_object_t *p_this, size_t owner_size )
105 msg_Err (p_this, "Encoding support not compiled-in!");
106 return NULL;
109 noreturn sout_input_t *sout_MuxAddStream(sout_mux_t *mux,
110 const es_format_t *fmt)
112 VLC_UNUSED (mux); VLC_UNUSED (fmt);
113 vlc_assert_unreachable ();
116 noreturn void sout_MuxDelete(sout_mux_t *mux)
118 VLC_UNUSED (mux);
119 vlc_assert_unreachable ();
122 noreturn void sout_MuxDeleteStream(sout_mux_t *mux, sout_input_t *input)
124 VLC_UNUSED (mux); VLC_UNUSED (input);
125 vlc_assert_unreachable ();
128 noreturn int sout_MuxGetStream(sout_mux_t *mux, unsigned n, vlc_tick_t *date)
130 (void) mux; (void) n; (void) date;
131 vlc_assert_unreachable ();
134 noreturn sout_mux_t *sout_MuxNew(sout_access_out_t *out, const char *mux)
136 VLC_UNUSED(out); VLC_UNUSED(mux);
137 vlc_assert_unreachable ();
140 noreturn int sout_MuxSendBuffer(sout_mux_t *mux, sout_input_t *input,
141 block_t *block)
143 VLC_UNUSED (mux); VLC_UNUSED (input); VLC_UNUSED (block);
144 vlc_assert_unreachable ();
147 noreturn void sout_MuxFlush(sout_mux_t *mux, sout_input_t *input)
149 VLC_UNUSED (mux); VLC_UNUSED (input);
150 vlc_assert_unreachable ();
153 noreturn void sout_StreamChainDelete(sout_stream_t *first,
154 sout_stream_t *end)
156 (void) first; (void) end;
157 vlc_assert_unreachable ();
160 noreturn sout_stream_t *sout_StreamChainNew(vlc_object_t *sout,
161 const char *chain,
162 sout_stream_t *next)
164 (void) sout; (void) chain; (void) next;
165 vlc_assert_unreachable ();
168 int vlc_sdp_Start (struct vlc_memstream *sdp, vlc_object_t *obj, const char *cfg,
169 const struct sockaddr *src, size_t srclen,
170 const struct sockaddr *addr, size_t addrlen)
172 VLC_UNUSED (obj); VLC_UNUSED (cfg); VLC_UNUSED (src); VLC_UNUSED (srclen);
173 VLC_UNUSED (addr); VLC_UNUSED (addrlen);
174 return 0;
176 #endif /* !ENABLE_SOUT */
178 #ifndef ENABLE_VLM
179 # include <vlc_vlm.h>
181 noreturn int vlm_Control(vlm_t *vlm, int query, ...)
183 VLC_UNUSED (query);
184 VLC_UNUSED (vlm);
185 vlc_assert_unreachable ();
188 noreturn void vlm_Delete(vlm_t *vlm)
190 VLC_UNUSED (vlm);
191 vlc_assert_unreachable ();
194 noreturn int vlm_ExecuteCommand(vlm_t *vlm, const char *cmd,
195 vlm_message_t **pm)
197 VLC_UNUSED (vlm);
198 VLC_UNUSED (cmd);
199 VLC_UNUSED (pm);
200 vlc_assert_unreachable ();
203 noreturn vlm_message_t *vlm_MessageAdd(vlm_message_t *a, vlm_message_t *b)
205 VLC_UNUSED (a);
206 VLC_UNUSED (b);
207 vlc_assert_unreachable ();
210 noreturn void vlm_MessageDelete(vlm_message_t *m)
212 VLC_UNUSED (m);
213 vlc_assert_unreachable ();
216 vlm_message_t *vlm_MessageSimpleNew (const char *a)
218 VLC_UNUSED (a);
219 return NULL;
222 vlm_message_t *vlm_MessageNew (const char *a, const char *fmt, ...)
224 VLC_UNUSED (a);
225 VLC_UNUSED (fmt);
226 return vlm_MessageSimpleNew (a);
229 #undef vlm_New
230 vlm_t *vlm_New (libvlc_int_t *obj, const char *file)
232 msg_Err (obj, "VLM not compiled-in!");
233 (void) file;
234 return NULL;
236 #endif /* !ENABLE_VLM */
238 #ifndef UPDATE_CHECK
239 # include <vlc_update.h>
241 update_t *(update_New)(vlc_object_t *obj)
243 (void) obj;
244 return NULL;
247 noreturn void update_Delete(update_t *u)
249 (void) u;
250 vlc_assert_unreachable();
253 noreturn void update_Check(update_t *u, void (*cb)(void *, bool), void *opaque)
255 (void) u; (void) cb; (void) opaque;
256 vlc_assert_unreachable();
259 noreturn bool update_NeedUpgrade(update_t *u)
261 (void) u;
262 vlc_assert_unreachable();
265 noreturn void update_Download(update_t *u, const char *dir)
267 (void) u; (void) dir;
268 vlc_assert_unreachable();
271 noreturn update_release_t *update_GetRelease(update_t *u)
273 (void) u;
274 vlc_assert_unreachable();
276 #endif /* !UPDATE_CHECK */
278 #include <vlc_threads.h>
279 #if defined(LIBVLC_USE_PTHREAD_CLEANUP)
280 noreturn void vlc_control_cancel (vlc_cleanup_t *cleaner)
282 (void) cleaner;
283 vlc_assert_unreachable ();
285 #endif
287 #include <errno.h>
288 #include <vlc_spawn.h>
290 VLC_WEAK
291 int vlc_spawn(pid_t *pid, const char *file, const int *fds,
292 const char *const *args)
294 (void) pid; (void) file; (void) fds; (void) args;
295 return ENOSYS;
298 VLC_WEAK
299 int vlc_spawnp(pid_t *pid, const char *path, const int *fds,
300 const char *const *args)
302 (void) pid; (void) path; (void) fds; (void) args;
303 return ENOSYS;
306 VLC_WEAK
307 int vlc_waitpid(pid_t pid)
309 (void) pid;
310 vlc_assert_unreachable();