missing.c 9.25 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
/*****************************************************************************
 * missing.c: missing libvlccore symbols
 *****************************************************************************
 * Copyright (C) 2008 Rémi Denis-Courmont
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (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
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU 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.
 *****************************************************************************/

/** \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
30
#include <assert.h>
31 32 33 34 35 36

#ifndef ENABLE_HTTPD
# include <vlc_httpd.h>

char *httpd_ClientIP (const httpd_client_t *cl, char *psz_ip)
{
37
    (void) cl; (void) psz_ip;
38 39 40 41 42
    assert (0);
}

void httpd_ClientModeBidir (httpd_client_t *cl)
{
43
    (void) cl;
44 45 46 47 48
    assert (0);
}

void httpd_ClientModeStream (httpd_client_t *cl)
{
49
    (void) cl;
50 51 52 53 54
    assert (0);
}

httpd_file_sys_t *httpd_FileDelete (httpd_file_t *file)
{
55
    (void) file;
56 57 58 59 60 61 62 63 64
    assert (0);
}

httpd_file_t *httpd_FileNew (httpd_host_t *host,
                             const char *url, const char *content_type,
                             const char *login, const char *password,
                             const vlc_acl_t *acl,
                             httpd_file_callback_t cb, httpd_file_sys_t *data)
{
65 66 67 68
    (void) host;
    (void) url; (void) content_type;
    (void) login; (void) password; (void) acl;
    (void) cb; (void) data;
69 70 71 72 73
    assert (0);
}

httpd_handler_sys_t *httpd_HandlerDelete (httpd_handler_t *handler)
{
74
    (void) handler;
75 76 77 78 79 80 81 82 83
    assert (0);
}

httpd_handler_t *httpd_HandlerNew (httpd_host_t *host, const char *url,
                                   const char *login, const char *password,
                                   const vlc_acl_t *acl,
                                   httpd_handler_callback_t cb,
                                   httpd_handler_sys_t *data)
{
Pierre Ynard's avatar
Pierre Ynard committed
84
    (void) host; (void) url;
85 86
    (void) login; (void) password; (void) acl;
    (void) cb; (void) data;
87 88 89 90 91
    assert (0);
}

void httpd_HostDelete (httpd_host_t *h)
{
92
    (void) h;
93 94 95 96 97 98 99 100 101 102
    assert (0);
}

httpd_host_t *httpd_HostNew (vlc_object_t *obj, const char *host, int port)
{
    return httpd_TLSHostNew (obj, host, port, NULL, NULL, NULL, NULL);
}

void httpd_MsgAdd (httpd_message_t *m, const char *name, const char *fmt, ...)
{
103
    (void) m; (void) name; (void) fmt;
104 105 106 107 108
    assert (0);
}

const char *httpd_MsgGet (const httpd_message_t *m, const char *name)
{
109
    (void) m; (void) name;
110 111 112 113 114
    assert (0);
}

void httpd_RedirectDelete (httpd_redirect_t *r)
{
115
    (void) r;
116 117 118 119 120 121
    assert (0);
}

httpd_redirect_t *httpd_RedirectNew (httpd_host_t *host,
                                     const char *dst, const char *src)
{
122
    (void) host; (void) dst; (void) src;
123 124 125 126 127
    assert (0);
}

char *httpd_ServerIP (const httpd_client_t *client, char *ip)
{
128
    (void) client; (void) ip;
129 130 131 132 133
    assert (0);
}

void httpd_StreamDelete (httpd_stream_t *stream)
{
134
    (void) stream;
135 136 137 138 139
    assert (0);
}

int httpd_StreamHeader (httpd_stream_t *stream, uint8_t *data, int count)
{
140
    (void) stream; (void) data; (void) count;
141 142 143 144 145 146 147 148
    assert (0);
}

httpd_stream_t *httpd_StreamNew (httpd_host_t *host,
                                 const char *url, const char *content_type,
                                 const char *login, const char *password,
                                 const vlc_acl_t *acl)
{
149 150
    (void) host; (void) url; (void) content_type;
    (void) login; (void) password; (void) acl;
151 152 153 154 155
    assert (0);
}

int httpd_StreamSend (httpd_stream_t *stream, uint8_t *data, int count)
{
156
    (void) stream; (void) data; (void) count;
157 158 159 160 161 162 163
    assert (0);
}

httpd_host_t *httpd_TLSHostNew (vlc_object_t *obj, const char *host, int port,
                                const char *cert, const char *key,
                                const char *ca, const char *crl)
{
164 165
     (void) host; (void) port;
     (void) cert; (void) key; (void) ca; (void) crl;
166 167 168 169 170 171 172
     msg_Err (obj, "VLC httpd support not compiled-in!");
     return NULL;
}

int httpd_UrlCatch (httpd_url_t *url, int request, httpd_callback_t cb,
                    httpd_callback_sys_t *data)
{
173
    (void) url; (void) request; (void) cb; (void) data;
174 175 176 177 178
    assert (0);
}

void httpd_UrlDelete (httpd_url_t *url)
{
179
    (void) url;
180 181 182 183 184 185 186
    assert (0);
}

httpd_url_t *httpd_UrlNew (httpd_host_t *host, const char *url,
                           const char *login, const char *password,
                           const vlc_acl_t *acl)
{
187
    (void) host; (void) url; (void) login; (void) password; (void) acl;
188 189 190 191 192 193 194
    assert (0);
}

httpd_url_t *httpd_UrlNewUnique (httpd_host_t *host, const char *url,
                                 const char *login, const char *password,
                                 const vlc_acl_t *acl)
{
195
    (void) host; (void) url; (void) login; (void) password; (void) acl;
196 197 198 199 200
    assert (0);
}
#endif /* !ENABLE_HTTPD */

#ifndef ENABLE_SOUT
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250
# include <vlc_sout.h>

char *sdp_AddMedia (char **sdp, const char *type, const char *protocol,
                    int dport, unsigned pt, bool bw_indep, unsigned bw,
                    const char *ptname, unsigned clockrate, unsigned channels,
                    const char *fmtp)
{
    assert (*sdp == NULL);
    return NULL;
}

char *sdp_AddAttribute (char **sdp, const char *name, const char *fmt, ...)
{
    assert (*sdp == NULL);
    return NULL;
}

int sout_AccessOutControl (sout_access_out_t *out, int query, ...)
{
    assert (0);
}

void sout_AccessOutDelete (sout_access_out_t *out)
{
    assert (0);
}

#undef sout_AccessOutNew
sout_access_out_t *sout_AccessOutNew (vlc_object_t *obj,
                                      const char *access, const char *name)
{
    msg_Err (obj, "Output support not compiled-in!");
    return NULL;
}

ssize_t sout_AccessOutRead (sout_access_out_t *out, block_t *block)
{
    assert (0);
}

int sout_AccessOutSeek (sout_access_out_t *out, off_t offset)
{
    assert (0);
}

ssize_t sout_AccessOutWrite (sout_access_out_t *out, block_t *block)
{
    assert (0);
}

251 252
#undef sout_AnnounceRegisterSDP
session_descriptor_t *sout_AnnounceRegisterSDP (vlc_object_t *obj,
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
253 254 255 256
                                                const char *sdp,
                                                const char *dst,
                                                announce_method_t *method)
{
257
    msg_Err (obj, "SDP export not compiled-in!");
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
258 259 260 261
    assert (method == NULL);
    return NULL;
}

262 263
#undef sout_AnnounceUnRegister
sout_AnnounceUnRegister (vlc_object_t *obj, session_descriptor_t *d)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
264 265 266 267
{
    assert (0);
}

268 269 270 271 272 273 274
#undef sout_EncoderCreate
encoder_t *sout_EncoderCreate( vlc_object_t *p_this )
{
    msg_Err (p_this, "Encoding support not compiled-in!");
    return NULL;
}

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294
void sout_MethodRelease (announce_method_t *method)
{
    (void)method;
}

sout_input_t *sout_MuxAddStream (sout_mux_t *mux, es_format_t *fmt)
{
    assert (0);
}

void sout_MuxDelete (sout_mux_t *mux)
{
    assert (0);
}

void sout_MuxDeleteStream (sout_mux_t *mux, sout_input_t *input)
{
    assert (0);
}

295 296 297 298 299
int sout_MuxGetStream (sout_mux_t *p_mux, int i_blocks, mtime_t *pi_dts)
{
    assert (0);
}

300
sout_mux_t *sout_MuxNew (sout_instance_t *instance, const char *mux,
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
301 302 303 304 305 306 307 308 309 310 311 312 313 314 315
                         sout_access_out_t *out)
{
    assert (0);
}

void sout_MuxSendBuffer (sout_mux_t *mux, sout_input_t *input, block_t *block)
{
    assert (0);
}

announce_method_t *sout_SAPMethod (void)
{
    return NULL;
}

316
void sout_StreamChainDelete (sout_stream_t *p_first, sout_stream_t *p_last)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
317 318 319 320
{
    assert (0);
}

321 322 323
sout_stream_t *sout_StreamChainNew (sout_instance_t *p_sout, char *psz_chain,
                                    sout_stream_t *p_next,
                                    sout_stream_t **pp_last)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339
{
    assert (0);
}

void sout_UpdateStatistic (sout_instance_t *instance, sout_statistic_t stat,
                           int value)
{
    assert (0);
}

char *vlc_sdp_Start (vlc_object_t *obj, const char *cfg,
                     const struct sockaddr *src, size_t srclen,
                     const struct sockaddr *addr, size_t addrlen)
{
    return NULL;
}
340
#endif /* !ENABLE_SOUT */
341

342 343
#ifndef ENABLE_VLM
# include <vlc_vlm.h>
344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369

int vlm_Control (vlm_t *vlm, int query, ...)
{
    assert (0);
}

void vlm_Delete (vlm_t *vlm)
{
    assert (0);
}

int vlm_ExecuteCommand (vlm_t *vlm, const char *cmd, vlm_message_t **pm)
{
    assert (0);
}

vlm_message_t *vlm_MessageAdd (vlm_message_t *a, vlm_message_t *b)
{
    assert (0);
}

void vlm_MessageDelete (vlm_message_t *m)
{
    assert (0);
}

370
vlm_message_t *vlm_MessageSimpleNew (const char *a)
371 372 373 374
{
    return NULL;
}

375 376 377 378 379
vlm_message_t *vlm_MessageNew (const char *a, const char *fmt, ...)
{
    return vlm_MessageSimpleNew (a);
}

380
#undef vlm_New
381
vlm_t *vlm_New (vlc_object_t *obj)
382 383 384 385
{
     msg_Err (obj, "VLM not compiled-in!");
     return NULL;
}
386
#endif /* !ENABLE_VLM */