missing.c 7.61 KB
Newer Older
1 2 3
/*****************************************************************************
 * missing.c: missing libvlccore symbols
 *****************************************************************************
4 5 6 7 8 9 10 11 12 13
 * Copyright (C) 2008-2011 Rémi Denis-Courmont
 * Copyright (C) 2009-2014 VLC authors and VideoLAN
 * $Id$
 *
 * Authors: Rémi Denis-Courmont <rem # videolan : org>
 *          Pierre Ynard <linkfanel # yahoo fr>
 *          Toralf Niebuhr <gmthor85 # aim com>
 *          Felix Paul Kühne <fkuehne # videolan org>
 *          Jean-Paul Saman <jpsaman # videolan org>
 *          Antoine Cellerier <dionoea # videolan org>
14
 *
Jean-Baptiste Kempf's avatar
LGPL  
Jean-Baptiste Kempf committed
15 16 17
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2.1 of the License, or
18 19 20 21
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Jean-Baptiste Kempf's avatar
LGPL  
Jean-Baptiste Kempf committed
22 23
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
24
 *
Jean-Baptiste Kempf's avatar
LGPL  
Jean-Baptiste Kempf committed
25 26 27
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
28 29 30 31 32 33 34 35 36 37 38
 *****************************************************************************/

/** \file
 * This file contains dummy replacement API for disabled features
 */

#ifdef HAVE_CONFIG_H
# include "config.h"
#endif

#include <vlc_common.h>
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
39
#include <assert.h>
40 41

#ifndef ENABLE_SOUT
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
42 43
# include <vlc_sout.h>

44
void sdp_AddMedia (struct vlc_memstream *sdp, const char *type, const char *protocol,
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
45 46 47 48
                    int dport, unsigned pt, bool bw_indep, unsigned bw,
                    const char *ptname, unsigned clockrate, unsigned channels,
                    const char *fmtp)
{
49 50 51 52
    VLC_UNUSED (sdp); VLC_UNUSED (type); VLC_UNUSED (protocol);
    VLC_UNUSED (dport); VLC_UNUSED (pt); VLC_UNUSED (bw_indep);
    VLC_UNUSED (bw); VLC_UNUSED (ptname); VLC_UNUSED (clockrate);
    VLC_UNUSED (channels); VLC_UNUSED (fmtp);
53
    assert (sdp == NULL);
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
54 55
}

56
void sdp_AddAttribute (struct vlc_memstream *sdp, const char *name, const char *fmt, ...)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
57
{
58
    VLC_UNUSED (sdp); VLC_UNUSED (name); VLC_UNUSED (fmt);
59
    assert (sdp == NULL);
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
60 61 62 63
}

int sout_AccessOutControl (sout_access_out_t *out, int query, ...)
{
64
    VLC_UNUSED (out); VLC_UNUSED (query);
65
    vlc_assert_unreachable ();
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
66 67 68 69
}

void sout_AccessOutDelete (sout_access_out_t *out)
{
70
    VLC_UNUSED (out);
71
    vlc_assert_unreachable ();
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
72 73 74 75 76 77
}

#undef sout_AccessOutNew
sout_access_out_t *sout_AccessOutNew (vlc_object_t *obj,
                                      const char *access, const char *name)
{
78
    VLC_UNUSED (access); VLC_UNUSED (name);
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
79 80 81 82 83 84
    msg_Err (obj, "Output support not compiled-in!");
    return NULL;
}

ssize_t sout_AccessOutRead (sout_access_out_t *out, block_t *block)
{
85
    VLC_UNUSED (out); VLC_UNUSED (block);
86
    vlc_assert_unreachable ();
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
87 88 89 90
}

int sout_AccessOutSeek (sout_access_out_t *out, off_t offset)
{
91
    VLC_UNUSED (out); VLC_UNUSED (offset);
92
    vlc_assert_unreachable ();
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
93 94 95 96
}

ssize_t sout_AccessOutWrite (sout_access_out_t *out, block_t *block)
{
97
    VLC_UNUSED (out); VLC_UNUSED (block);
98
    vlc_assert_unreachable ();
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
99 100
}

101 102
#undef sout_AnnounceRegisterSDP
session_descriptor_t *sout_AnnounceRegisterSDP (vlc_object_t *obj,
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
103
                                                const char *sdp,
Pierre Ynard's avatar
Pierre Ynard committed
104
                                                const char *dst)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
105
{
106
    VLC_UNUSED (sdp); VLC_UNUSED (dst);
107
    msg_Err (obj, "SDP export not compiled-in!");
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
108 109 110
    return NULL;
}

111
#undef sout_AnnounceUnRegister
112
void sout_AnnounceUnRegister (vlc_object_t *obj, session_descriptor_t *d)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
113
{
114
    VLC_UNUSED (obj); VLC_UNUSED (d);
115
    vlc_assert_unreachable ();
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
116 117
}

118 119 120 121 122 123 124
#undef sout_EncoderCreate
encoder_t *sout_EncoderCreate( vlc_object_t *p_this )
{
    msg_Err (p_this, "Encoding support not compiled-in!");
    return NULL;
}

125
sout_input_t *sout_MuxAddStream( sout_mux_t *mux, const es_format_t *fmt )
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
126
{
127
    VLC_UNUSED (mux); VLC_UNUSED (fmt);
128
    vlc_assert_unreachable ();
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
129 130 131 132
}

void sout_MuxDelete (sout_mux_t *mux)
{
133
    VLC_UNUSED (mux);
134
    vlc_assert_unreachable ();
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
135 136 137 138
}

void sout_MuxDeleteStream (sout_mux_t *mux, sout_input_t *input)
{
139
    VLC_UNUSED (mux); VLC_UNUSED (input);
140
    vlc_assert_unreachable ();
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
141 142
}

143
int sout_MuxGetStream (sout_mux_t *p_mux, unsigned int i_blocks, mtime_t *pi_dts)
144
{
145
    VLC_UNUSED (p_mux); VLC_UNUSED (i_blocks); VLC_UNUSED (pi_dts);
146
    vlc_assert_unreachable ();
147 148
}

149
sout_mux_t *sout_MuxNew (sout_instance_t *instance, const char *mux,
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
150 151
                         sout_access_out_t *out)
{
152
    VLC_UNUSED (instance); VLC_UNUSED (mux); VLC_UNUSED (out);
153
    vlc_assert_unreachable ();
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
154 155
}

156
int sout_MuxSendBuffer (sout_mux_t *mux, sout_input_t *input, block_t *block)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
157
{
158
    VLC_UNUSED (mux); VLC_UNUSED (input); VLC_UNUSED (block);
159
    vlc_assert_unreachable ();
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
160 161
}

162 163 164 165 166 167
void sout_MuxFlush( sout_mux_t *mux, sout_input_t *input )
{
    VLC_UNUSED (mux); VLC_UNUSED (input);
    vlc_assert_unreachable ();
}

168
void sout_StreamChainDelete (sout_stream_t *p_first, sout_stream_t *p_last)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
169
{
170
    VLC_UNUSED (p_first); VLC_UNUSED (p_last);
171
    vlc_assert_unreachable ();
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
172 173
}

174
sout_stream_t *sout_StreamChainNew (sout_instance_t *p_sout, const char *psz_chain,
175 176
                                    sout_stream_t *p_next,
                                    sout_stream_t **pp_last)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
177
{
178 179
    VLC_UNUSED (p_sout); VLC_UNUSED (psz_chain); VLC_UNUSED (p_next);
    VLC_UNUSED (pp_last);
180
    vlc_assert_unreachable ();
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
181 182
}

183
int vlc_sdp_Start (struct vlc_memstream *sdp, vlc_object_t *obj, const char *cfg,
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
184 185 186
                     const struct sockaddr *src, size_t srclen,
                     const struct sockaddr *addr, size_t addrlen)
{
187 188
    VLC_UNUSED (obj); VLC_UNUSED (cfg); VLC_UNUSED (src); VLC_UNUSED (srclen);
    VLC_UNUSED (addr); VLC_UNUSED (addrlen);
189
    return 0;
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
190
}
191
#endif /* !ENABLE_SOUT */
192

193 194
#ifndef ENABLE_VLM
# include <vlc_vlm.h>
195 196 197

int vlm_Control (vlm_t *vlm, int query, ...)
{
198
    VLC_UNUSED (query);
199
    VLC_UNUSED (vlm);
200
    vlc_assert_unreachable ();
201 202 203 204
}

void vlm_Delete (vlm_t *vlm)
{
205
    VLC_UNUSED (vlm);
206
    vlc_assert_unreachable ();
207 208 209 210
}

int vlm_ExecuteCommand (vlm_t *vlm, const char *cmd, vlm_message_t **pm)
{
211 212 213
    VLC_UNUSED (vlm);
    VLC_UNUSED (cmd);
    VLC_UNUSED (pm);
214
    vlc_assert_unreachable ();
215 216 217 218
}

vlm_message_t *vlm_MessageAdd (vlm_message_t *a, vlm_message_t *b)
{
219 220
    VLC_UNUSED (a);
    VLC_UNUSED (b);
221
    vlc_assert_unreachable ();
222 223 224 225
}

void vlm_MessageDelete (vlm_message_t *m)
{
226
    VLC_UNUSED (m);
227
    vlc_assert_unreachable ();
228 229
}

230
vlm_message_t *vlm_MessageSimpleNew (const char *a)
231
{
232
    VLC_UNUSED (a);
233 234 235
    return NULL;
}

236 237
vlm_message_t *vlm_MessageNew (const char *a, const char *fmt, ...)
{
238 239
    VLC_UNUSED (a);
    VLC_UNUSED (fmt);
240 241 242
    return vlm_MessageSimpleNew (a);
}

243
#undef vlm_New
244
vlm_t *vlm_New (vlc_object_t *obj, const char *file)
245 246
{
     msg_Err (obj, "VLM not compiled-in!");
247
     (void) file;
248 249
     return NULL;
}
250
#endif /* !ENABLE_VLM */
251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290

#ifndef UPDATE_CHECK
# include <vlc_update.h>

update_t *(update_New)(vlc_object_t *obj)
{
    (void) obj;
    return NULL;
}

void update_Delete(update_t *u)
{
    (void) u;
    vlc_assert_unreachable();
}

void update_Check(update_t *u, void (*cb)(void *, bool), void *opaque)
{
    (void) u; (void) cb; (void) opaque;
    vlc_assert_unreachable();
}

bool update_NeedUpgrade(update_t *u)
{
    (void) u;
    vlc_assert_unreachable();
}

void update_Download(update_t *u, const char *dir)
{
    (void) u; (void) dir;
    vlc_assert_unreachable();
}

update_release_t *update_GetRelease(update_t *u)
{
    (void) u;
    vlc_assert_unreachable();
}
#endif /* !UPDATE_CHECK */