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
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 *****************************************************************************/
31 * This file contains dummy replacement API for disabled features
38 #include <vlc_common.h>
42 # include <vlc_httpd.h>
44 char *httpd_ClientIP (const httpd_client_t
*cl
, char *psz_ip
, int *port
)
46 (void) cl
; (void) psz_ip
; (void) port
;
50 httpd_file_sys_t
*httpd_FileDelete (httpd_file_t
*file
)
56 httpd_file_t
*httpd_FileNew (httpd_host_t
*host
,
57 const char *url
, const char *content_type
,
58 const char *login
, const char *password
,
59 httpd_file_callback_t cb
, httpd_file_sys_t
*data
)
62 (void) url
; (void) content_type
;
63 (void) login
; (void) password
;
64 (void) cb
; (void) data
;
68 httpd_handler_sys_t
*httpd_HandlerDelete (httpd_handler_t
*handler
)
74 httpd_handler_t
*httpd_HandlerNew (httpd_host_t
*host
, const char *url
,
75 const char *login
, const char *password
,
76 httpd_handler_callback_t cb
,
77 httpd_handler_sys_t
*data
)
79 (void) host
; (void) url
;
80 (void) login
; (void) password
;
81 (void) cb
; (void) data
;
85 void httpd_HostDelete (httpd_host_t
*h
)
91 httpd_host_t
*vlc_http_HostNew (vlc_object_t
*obj
)
93 msg_Err (obj
, "HTTP server not compiled-in!");
97 httpd_host_t
*vlc_https_HostNew (vlc_object_t
*obj
)
99 msg_Err (obj
, "HTTPS server not compiled-in!");
103 httpd_host_t
*vlc_rtsp_HostNew (vlc_object_t
*obj
)
105 msg_Err (obj
, "RTSP server not compiled-in!");
109 void httpd_MsgAdd (httpd_message_t
*m
, const char *name
, const char *fmt
, ...)
111 (void) m
; (void) name
; (void) fmt
;
115 const char *httpd_MsgGet (const httpd_message_t
*m
, const char *name
)
117 (void) m
; (void) name
;
121 void httpd_RedirectDelete (httpd_redirect_t
*r
)
127 httpd_redirect_t
*httpd_RedirectNew (httpd_host_t
*host
,
128 const char *dst
, const char *src
)
130 (void) host
; (void) dst
; (void) src
;
134 char *httpd_ServerIP (const httpd_client_t
*client
, char *ip
, int *port
)
136 (void) client
; (void) ip
; (void) port
;
140 void httpd_StreamDelete (httpd_stream_t
*stream
)
146 int httpd_StreamHeader (httpd_stream_t
*stream
, uint8_t *data
, int count
)
148 (void) stream
; (void) data
; (void) count
;
152 httpd_stream_t
*httpd_StreamNew (httpd_host_t
*host
,
153 const char *url
, const char *content_type
,
154 const char *login
, const char *password
)
156 (void) host
; (void) url
; (void) content_type
;
157 (void) login
; (void) password
;
161 int httpd_StreamSend (httpd_stream_t
*stream
, const block_t
*p_block
)
163 (void) stream
; (void) p_block
;
167 int httpd_StreamSetHTTPHeaders (httpd_stream_t
* stream
,
168 httpd_header
* headers
,
171 (void) stream
; (void) headers
; (void) i_headers
;
175 int httpd_UrlCatch (httpd_url_t
*url
, int request
, httpd_callback_t cb
,
176 httpd_callback_sys_t
*data
)
178 (void) url
; (void) request
; (void) cb
; (void) data
;
182 void httpd_UrlDelete (httpd_url_t
*url
)
188 httpd_url_t
*httpd_UrlNew (httpd_host_t
*host
, const char *url
,
189 const char *login
, const char *password
)
191 (void) host
; (void) url
; (void) login
; (void) password
;
194 #endif /* !ENABLE_HTTPD */
197 # include <vlc_sout.h>
199 char *sdp_AddMedia (char **sdp
, const char *type
, const char *protocol
,
200 int dport
, unsigned pt
, bool bw_indep
, unsigned bw
,
201 const char *ptname
, unsigned clockrate
, unsigned channels
,
204 VLC_UNUSED (sdp
); VLC_UNUSED (type
); VLC_UNUSED (protocol
);
205 VLC_UNUSED (dport
); VLC_UNUSED (pt
); VLC_UNUSED (bw_indep
);
206 VLC_UNUSED (bw
); VLC_UNUSED (ptname
); VLC_UNUSED (clockrate
);
207 VLC_UNUSED (channels
); VLC_UNUSED (fmtp
);
208 assert (*sdp
== NULL
);
211 char *sdp_AddAttribute (char **sdp
, const char *name
, const char *fmt
, ...)
213 VLC_UNUSED (sdp
); VLC_UNUSED (name
); VLC_UNUSED (fmt
);
214 assert (*sdp
== NULL
);
217 int sout_AccessOutControl (sout_access_out_t
*out
, int query
, ...)
219 VLC_UNUSED (out
); VLC_UNUSED (query
);
223 void sout_AccessOutDelete (sout_access_out_t
*out
)
229 #undef sout_AccessOutNew
230 sout_access_out_t
*sout_AccessOutNew (vlc_object_t
*obj
,
231 const char *access
, const char *name
)
233 VLC_UNUSED (access
); VLC_UNUSED (name
);
234 msg_Err (obj
, "Output support not compiled-in!");
238 ssize_t
sout_AccessOutRead (sout_access_out_t
*out
, block_t
*block
)
240 VLC_UNUSED (out
); VLC_UNUSED (block
);
244 int sout_AccessOutSeek (sout_access_out_t
*out
, off_t offset
)
246 VLC_UNUSED (out
); VLC_UNUSED (offset
);
250 ssize_t
sout_AccessOutWrite (sout_access_out_t
*out
, block_t
*block
)
252 VLC_UNUSED (out
); VLC_UNUSED (block
);
256 #undef sout_AnnounceRegisterSDP
257 session_descriptor_t
*sout_AnnounceRegisterSDP (vlc_object_t
*obj
,
261 VLC_UNUSED (sdp
); VLC_UNUSED (dst
);
262 msg_Err (obj
, "SDP export not compiled-in!");
266 #undef sout_AnnounceUnRegister
267 int sout_AnnounceUnRegister (vlc_object_t
*obj
, session_descriptor_t
*d
)
269 VLC_UNUSED (obj
); VLC_UNUSED (d
);
273 #undef sout_EncoderCreate
274 encoder_t
*sout_EncoderCreate( vlc_object_t
*p_this
)
276 msg_Err (p_this
, "Encoding support not compiled-in!");
280 sout_input_t
*sout_MuxAddStream (sout_mux_t
*mux
, es_format_t
*fmt
)
282 VLC_UNUSED (mux
); VLC_UNUSED (fmt
);
286 void sout_MuxDelete (sout_mux_t
*mux
)
292 void sout_MuxDeleteStream (sout_mux_t
*mux
, sout_input_t
*input
)
294 VLC_UNUSED (mux
); VLC_UNUSED (input
);
298 int sout_MuxGetStream (sout_mux_t
*p_mux
, int i_blocks
, mtime_t
*pi_dts
)
300 VLC_UNUSED (p_mux
); VLC_UNUSED (i_blocks
); VLC_UNUSED (pi_dts
);
304 sout_mux_t
*sout_MuxNew (sout_instance_t
*instance
, const char *mux
,
305 sout_access_out_t
*out
)
307 VLC_UNUSED (instance
); VLC_UNUSED (mux
); VLC_UNUSED (out
);
311 int sout_MuxSendBuffer (sout_mux_t
*mux
, sout_input_t
*input
, block_t
*block
)
313 VLC_UNUSED (mux
); VLC_UNUSED (input
); VLC_UNUSED (block
);
317 void sout_StreamChainDelete (sout_stream_t
*p_first
, sout_stream_t
*p_last
)
319 VLC_UNUSED (p_first
); VLC_UNUSED (p_last
);
323 sout_stream_t
*sout_StreamChainNew (sout_instance_t
*p_sout
, char *psz_chain
,
324 sout_stream_t
*p_next
,
325 sout_stream_t
**pp_last
)
327 VLC_UNUSED (p_sout
); VLC_UNUSED (psz_chain
); VLC_UNUSED (p_next
);
328 VLC_UNUSED (pp_last
);
332 char *vlc_sdp_Start (vlc_object_t
*obj
, const char *cfg
,
333 const struct sockaddr
*src
, size_t srclen
,
334 const struct sockaddr
*addr
, size_t addrlen
)
336 VLC_UNUSED (obj
); VLC_UNUSED (cfg
); VLC_UNUSED (src
); VLC_UNUSED (srclen
);
337 VLC_UNUSED (addr
); VLC_UNUSED (addrlen
);
340 #endif /* !ENABLE_SOUT */
343 # include <vlc_vlm.h>
345 int vlm_Control (vlm_t
*vlm
, int query
, ...)
352 void vlm_Delete (vlm_t
*vlm
)
358 int vlm_ExecuteCommand (vlm_t
*vlm
, const char *cmd
, vlm_message_t
**pm
)
366 vlm_message_t
*vlm_MessageAdd (vlm_message_t
*a
, vlm_message_t
*b
)
373 void vlm_MessageDelete (vlm_message_t
*m
)
379 vlm_message_t
*vlm_MessageSimpleNew (const char *a
)
385 vlm_message_t
*vlm_MessageNew (const char *a
, const char *fmt
, ...)
389 return vlm_MessageSimpleNew (a
);
393 vlm_t
*vlm_New (vlc_object_t
*obj
)
395 msg_Err (obj
, "VLM not compiled-in!");
398 #endif /* !ENABLE_VLM */