X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmissing.c;h=a4897ee387aee9d91aaa1ed63a62a5b6fe8968aa;hb=3ca68a656282c5dcb4c2ebbb9ec9e8ec6069576f;hp=44495be5b4ad162dad2c242ec945736bbaf05fba;hpb=ff004f399d0470ff24dce885b78056d56ca5ae3c;p=vlc diff --git a/src/missing.c b/src/missing.c index 44495be5b4..a4897ee387 100644 --- a/src/missing.c +++ b/src/missing.c @@ -1,21 +1,30 @@ /***************************************************************************** * missing.c: missing libvlccore symbols ***************************************************************************** - * Copyright (C) 2008 Rémi Denis-Courmont + * Copyright (C) 2008-2011 Rémi Denis-Courmont + * Copyright (C) 2009-2014 VLC authors and VideoLAN + * $Id$ * - * 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 + * Authors: Rémi Denis-Courmont + * Pierre Ynard + * Toralf Niebuhr + * Felix Paul Kühne + * Jean-Paul Saman + * Antoine Cellerier + * + * 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 * (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. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser 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. + * 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. *****************************************************************************/ /** \file @@ -32,139 +41,155 @@ #ifndef ENABLE_HTTPD # include -char *httpd_ClientIP (const httpd_client_t *cl, char *psz_ip) +char *httpd_ClientIP (const httpd_client_t *cl, char *psz_ip, int *port) { - assert (0); -} - -void httpd_ClientModeBidir (httpd_client_t *cl) -{ - assert (0); -} - -void httpd_ClientModeStream (httpd_client_t *cl) -{ - assert (0); + (void) cl; (void) psz_ip; (void) port; + vlc_assert_unreachable (); } httpd_file_sys_t *httpd_FileDelete (httpd_file_t *file) { - assert (0); + (void) file; + vlc_assert_unreachable (); } 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) { - assert (0); + (void) host; + (void) url; (void) content_type; + (void) login; (void) password; + (void) cb; (void) data; + vlc_assert_unreachable (); } httpd_handler_sys_t *httpd_HandlerDelete (httpd_handler_t *handler) { - assert (0); + (void) handler; + vlc_assert_unreachable (); } 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) { - assert (0); + (void) host; (void) url; + (void) login; (void) password; + (void) cb; (void) data; + vlc_assert_unreachable (); } void httpd_HostDelete (httpd_host_t *h) { - assert (0); + (void) h; + vlc_assert_unreachable (); +} + +httpd_host_t *vlc_http_HostNew (vlc_object_t *obj) +{ + msg_Err (obj, "HTTP server not compiled-in!"); + return NULL; } -httpd_host_t *httpd_HostNew (vlc_object_t *obj, const char *host, int port) +httpd_host_t *vlc_https_HostNew (vlc_object_t *obj) { - return httpd_TLSHostNew (obj, host, port, NULL, NULL, NULL, NULL); + msg_Err (obj, "HTTPS server not compiled-in!"); + return NULL; +} + +httpd_host_t *vlc_rtsp_HostNew (vlc_object_t *obj) +{ + msg_Err (obj, "RTSP server not compiled-in!"); + return NULL; } void httpd_MsgAdd (httpd_message_t *m, const char *name, const char *fmt, ...) { - assert (0); + (void) m; (void) name; (void) fmt; + vlc_assert_unreachable (); } const char *httpd_MsgGet (const httpd_message_t *m, const char *name) { - assert (0); + (void) m; (void) name; + vlc_assert_unreachable (); } void httpd_RedirectDelete (httpd_redirect_t *r) { - assert (0); + (void) r; + vlc_assert_unreachable (); } httpd_redirect_t *httpd_RedirectNew (httpd_host_t *host, const char *dst, const char *src) { - assert (0); + (void) host; (void) dst; (void) src; + vlc_assert_unreachable (); } -char *httpd_ServerIP (const httpd_client_t *client, char *ip) +char *httpd_ServerIP (const httpd_client_t *client, char *ip, int *port) { - assert (0); + (void) client; (void) ip; (void) port; + vlc_assert_unreachable (); } void httpd_StreamDelete (httpd_stream_t *stream) { - assert (0); + (void) stream; + vlc_assert_unreachable (); } int httpd_StreamHeader (httpd_stream_t *stream, uint8_t *data, int count) { - assert (0); + (void) stream; (void) data; (void) count; + vlc_assert_unreachable (); } 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) + const char *login, const char *password) { - assert (0); + (void) host; (void) url; (void) content_type; + (void) login; (void) password; + vlc_assert_unreachable (); } -int httpd_StreamSend (httpd_stream_t *stream, uint8_t *data, int count) +int httpd_StreamSend (httpd_stream_t *stream, const block_t *p_block) { - assert (0); + (void) stream; (void) p_block; + vlc_assert_unreachable (); } -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) +int httpd_StreamSetHTTPHeaders (httpd_stream_t * stream, + httpd_header * headers, + size_t i_headers) { - msg_Err (obj, "VLC httpd support not compiled-in!"); - return NULL; + (void) stream; (void) headers; (void) i_headers; + vlc_assert_unreachable (); } int httpd_UrlCatch (httpd_url_t *url, int request, httpd_callback_t cb, httpd_callback_sys_t *data) { - assert (0); + (void) url; (void) request; (void) cb; (void) data; + vlc_assert_unreachable (); } void httpd_UrlDelete (httpd_url_t *url) { - assert (0); + (void) url; + vlc_assert_unreachable (); } httpd_url_t *httpd_UrlNew (httpd_host_t *host, const char *url, - const char *login, const char *password, - const vlc_acl_t *acl) -{ - 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) + const char *login, const char *password) { - assert (0); + (void) host; (void) url; (void) login; (void) password; + vlc_assert_unreachable (); } #endif /* !ENABLE_HTTPD */ @@ -176,64 +201,73 @@ char *sdp_AddMedia (char **sdp, const char *type, const char *protocol, const char *ptname, unsigned clockrate, unsigned channels, const char *fmtp) { + 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); assert (*sdp == NULL); - return NULL; } char *sdp_AddAttribute (char **sdp, const char *name, const char *fmt, ...) { + VLC_UNUSED (sdp); VLC_UNUSED (name); VLC_UNUSED (fmt); assert (*sdp == NULL); - return NULL; } int sout_AccessOutControl (sout_access_out_t *out, int query, ...) { - assert (0); + VLC_UNUSED (out); VLC_UNUSED (query); + vlc_assert_unreachable (); } void sout_AccessOutDelete (sout_access_out_t *out) { - assert (0); + VLC_UNUSED (out); + vlc_assert_unreachable (); } #undef sout_AccessOutNew sout_access_out_t *sout_AccessOutNew (vlc_object_t *obj, const char *access, const char *name) { + VLC_UNUSED (access); VLC_UNUSED (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); + VLC_UNUSED (out); VLC_UNUSED (block); + vlc_assert_unreachable (); } int sout_AccessOutSeek (sout_access_out_t *out, off_t offset) { - assert (0); + VLC_UNUSED (out); VLC_UNUSED (offset); + vlc_assert_unreachable (); } ssize_t sout_AccessOutWrite (sout_access_out_t *out, block_t *block) { - assert (0); + VLC_UNUSED (out); VLC_UNUSED (block); + vlc_assert_unreachable (); } #undef sout_AnnounceRegisterSDP session_descriptor_t *sout_AnnounceRegisterSDP (vlc_object_t *obj, const char *sdp, - const char *dst, - announce_method_t *method) + const char *dst) { + VLC_UNUSED (sdp); VLC_UNUSED (dst); msg_Err (obj, "SDP export not compiled-in!"); - assert (method == NULL); return NULL; } #undef sout_AnnounceUnRegister -sout_AnnounceUnRegister (vlc_object_t *obj, session_descriptor_t *d) +void sout_AnnounceUnRegister (vlc_object_t *obj, session_descriptor_t *d) { - assert (0); + VLC_UNUSED (obj); VLC_UNUSED (d); + vlc_assert_unreachable (); } #undef sout_EncoderCreate @@ -243,62 +277,64 @@ encoder_t *sout_EncoderCreate( vlc_object_t *p_this ) return NULL; } -void sout_MethodRelease (announce_method_t *method) +sout_input_t *sout_MuxAddStream( sout_mux_t *mux, const es_format_t *fmt ) { - (void)method; -} - -sout_input_t *sout_MuxAddStream (sout_mux_t *mux, es_format_t *fmt) -{ - assert (0); + VLC_UNUSED (mux); VLC_UNUSED (fmt); + vlc_assert_unreachable (); } void sout_MuxDelete (sout_mux_t *mux) { - assert (0); + VLC_UNUSED (mux); + vlc_assert_unreachable (); } void sout_MuxDeleteStream (sout_mux_t *mux, sout_input_t *input) { - assert (0); -} - -sout_mux_t *sout_MuxNew (sout_instance_t *instance, char *mux, - sout_access_out_t *out) -{ - assert (0); + VLC_UNUSED (mux); VLC_UNUSED (input); + vlc_assert_unreachable (); } -void sout_MuxSendBuffer (sout_mux_t *mux, sout_input_t *input, block_t *block) +int sout_MuxGetStream (sout_mux_t *p_mux, unsigned int i_blocks, mtime_t *pi_dts) { - assert (0); + VLC_UNUSED (p_mux); VLC_UNUSED (i_blocks); VLC_UNUSED (pi_dts); + vlc_assert_unreachable (); } -announce_method_t *sout_SAPMethod (void) +sout_mux_t *sout_MuxNew (sout_instance_t *instance, const char *mux, + sout_access_out_t *out) { - return NULL; + VLC_UNUSED (instance); VLC_UNUSED (mux); VLC_UNUSED (out); + vlc_assert_unreachable (); } -void sout_StreamDelete (sout_stream_t *stream) +int sout_MuxSendBuffer (sout_mux_t *mux, sout_input_t *input, block_t *block) { - assert (0); + VLC_UNUSED (mux); VLC_UNUSED (input); VLC_UNUSED (block); + vlc_assert_unreachable (); } -sout_stream_t *sout_StreamNew (sout_instance_t *instance, char *chain) +void sout_StreamChainDelete (sout_stream_t *p_first, sout_stream_t *p_last) { - assert (0); + VLC_UNUSED (p_first); VLC_UNUSED (p_last); + vlc_assert_unreachable (); } -void sout_UpdateStatistic (sout_instance_t *instance, sout_statistic_t stat, - int value) +sout_stream_t *sout_StreamChainNew (sout_instance_t *p_sout, char *psz_chain, + sout_stream_t *p_next, + sout_stream_t **pp_last) { - assert (0); + VLC_UNUSED (p_sout); VLC_UNUSED (psz_chain); VLC_UNUSED (p_next); + VLC_UNUSED (pp_last); + vlc_assert_unreachable (); } 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) { + VLC_UNUSED (obj); VLC_UNUSED (cfg); VLC_UNUSED (src); VLC_UNUSED (srclen); + VLC_UNUSED (addr); VLC_UNUSED (addrlen); return NULL; } #endif /* !ENABLE_SOUT */ @@ -308,35 +344,53 @@ char *vlc_sdp_Start (vlc_object_t *obj, const char *cfg, int vlm_Control (vlm_t *vlm, int query, ...) { - assert (0); + VLC_UNUSED (query); + VLC_UNUSED (vlm); + vlc_assert_unreachable (); } void vlm_Delete (vlm_t *vlm) { - assert (0); + VLC_UNUSED (vlm); + vlc_assert_unreachable (); } int vlm_ExecuteCommand (vlm_t *vlm, const char *cmd, vlm_message_t **pm) { - assert (0); + VLC_UNUSED (vlm); + VLC_UNUSED (cmd); + VLC_UNUSED (pm); + vlc_assert_unreachable (); } vlm_message_t *vlm_MessageAdd (vlm_message_t *a, vlm_message_t *b) { - assert (0); + VLC_UNUSED (a); + VLC_UNUSED (b); + vlc_assert_unreachable (); } void vlm_MessageDelete (vlm_message_t *m) { - assert (0); + VLC_UNUSED (m); + vlc_assert_unreachable (); } -vlm_message_t *vlm_MessageNew (const char *a, const char *fmt, ...) +vlm_message_t *vlm_MessageSimpleNew (const char *a) { + VLC_UNUSED (a); return NULL; } -vlm_t *__vlm_New (vlc_object_t *obj) +vlm_message_t *vlm_MessageNew (const char *a, const char *fmt, ...) +{ + VLC_UNUSED (a); + VLC_UNUSED (fmt); + return vlm_MessageSimpleNew (a); +} + +#undef vlm_New +vlm_t *vlm_New (vlc_object_t *obj) { msg_Err (obj, "VLM not compiled-in!"); return NULL;