1 /*****************************************************************************
2 * missing.c: missing libvlccore symbols
3 *****************************************************************************
4 * Copyright (C) 2008 RĂ©mi Denis-Courmont
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation; either version 2.1 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
19 *****************************************************************************/
22 * This file contains dummy replacement API for disabled features
29 #include <vlc_common.h>
33 # include <vlc_httpd.h>
35 char *httpd_ClientIP (const httpd_client_t
*cl
, char *psz_ip
, int *port
)
37 (void) cl
; (void) psz_ip
; (void) port
;
41 void httpd_ClientModeBidir (httpd_client_t
*cl
)
47 void httpd_ClientModeStream (httpd_client_t
*cl
)
53 httpd_file_sys_t
*httpd_FileDelete (httpd_file_t
*file
)
59 httpd_file_t
*httpd_FileNew (httpd_host_t
*host
,
60 const char *url
, const char *content_type
,
61 const char *login
, const char *password
,
62 httpd_file_callback_t cb
, httpd_file_sys_t
*data
)
65 (void) url
; (void) content_type
;
66 (void) login
; (void) password
;
67 (void) cb
; (void) data
;
71 httpd_handler_sys_t
*httpd_HandlerDelete (httpd_handler_t
*handler
)
77 httpd_handler_t
*httpd_HandlerNew (httpd_host_t
*host
, const char *url
,
78 const char *login
, const char *password
,
79 httpd_handler_callback_t cb
,
80 httpd_handler_sys_t
*data
)
82 (void) host
; (void) url
;
83 (void) login
; (void) password
;
84 (void) cb
; (void) data
;
88 void httpd_HostDelete (httpd_host_t
*h
)
94 httpd_host_t
*vlc_http_HostNew (vlc_object_t
*obj
)
96 msg_Err (obj
, "HTTP server not compiled-in!");
100 httpd_host_t
*vlc_https_HostNew (vlc_object_t
*obj
)
102 msg_Err (obj
, "HTTPS server not compiled-in!");
106 httpd_host_t
*vlc_rtsp_HostNew (vlc_object_t
*obj
)
108 msg_Err (obj
, "RTSP server not compiled-in!");
112 void httpd_MsgAdd (httpd_message_t
*m
, const char *name
, const char *fmt
, ...)
114 (void) m
; (void) name
; (void) fmt
;
118 const char *httpd_MsgGet (const httpd_message_t
*m
, const char *name
)
120 (void) m
; (void) name
;
124 void httpd_RedirectDelete (httpd_redirect_t
*r
)
130 httpd_redirect_t
*httpd_RedirectNew (httpd_host_t
*host
,
131 const char *dst
, const char *src
)
133 (void) host
; (void) dst
; (void) src
;
137 char *httpd_ServerIP (const httpd_client_t
*client
, char *ip
, int *port
)
139 (void) client
; (void) ip
; (void) port
;
143 void httpd_StreamDelete (httpd_stream_t
*stream
)
149 int httpd_StreamHeader (httpd_stream_t
*stream
, uint8_t *data
, int count
)
151 (void) stream
; (void) data
; (void) count
;
155 httpd_stream_t
*httpd_StreamNew (httpd_host_t
*host
,
156 const char *url
, const char *content_type
,
157 const char *login
, const char *password
)
159 (void) host
; (void) url
; (void) content_type
;
160 (void) login
; (void) password
;
164 int httpd_StreamSend (httpd_stream_t
*stream
, const block_t
*p_block
)
166 (void) stream
; (void) p_block
;
170 int httpd_UrlCatch (httpd_url_t
*url
, int request
, httpd_callback_t cb
,
171 httpd_callback_sys_t
*data
)
173 (void) url
; (void) request
; (void) cb
; (void) data
;
177 void httpd_UrlDelete (httpd_url_t
*url
)
183 httpd_url_t
*httpd_UrlNew (httpd_host_t
*host
, const char *url
,
184 const char *login
, const char *password
)
186 (void) host
; (void) url
; (void) login
; (void) password
;
189 #endif /* !ENABLE_HTTPD */
192 # include <vlc_sout.h>
194 char *sdp_AddMedia (char **sdp
, const char *type
, const char *protocol
,
195 int dport
, unsigned pt
, bool bw_indep
, unsigned bw
,
196 const char *ptname
, unsigned clockrate
, unsigned channels
,
199 assert (*sdp
== NULL
);
203 char *sdp_AddAttribute (char **sdp
, const char *name
, const char *fmt
, ...)
205 assert (*sdp
== NULL
);
209 int sout_AccessOutControl (sout_access_out_t
*out
, int query
, ...)
214 void sout_AccessOutDelete (sout_access_out_t
*out
)
219 #undef sout_AccessOutNew
220 sout_access_out_t
*sout_AccessOutNew (vlc_object_t
*obj
,
221 const char *access
, const char *name
)
223 msg_Err (obj
, "Output support not compiled-in!");
227 ssize_t
sout_AccessOutRead (sout_access_out_t
*out
, block_t
*block
)
232 int sout_AccessOutSeek (sout_access_out_t
*out
, off_t offset
)
237 ssize_t
sout_AccessOutWrite (sout_access_out_t
*out
, block_t
*block
)
242 #undef sout_AnnounceRegisterSDP
243 session_descriptor_t
*sout_AnnounceRegisterSDP (vlc_object_t
*obj
,
247 msg_Err (obj
, "SDP export not compiled-in!");
251 #undef sout_AnnounceUnRegister
252 sout_AnnounceUnRegister (vlc_object_t
*obj
, session_descriptor_t
*d
)
257 #undef sout_EncoderCreate
258 encoder_t
*sout_EncoderCreate( vlc_object_t
*p_this
)
260 msg_Err (p_this
, "Encoding support not compiled-in!");
264 sout_input_t
*sout_MuxAddStream (sout_mux_t
*mux
, es_format_t
*fmt
)
269 void sout_MuxDelete (sout_mux_t
*mux
)
274 void sout_MuxDeleteStream (sout_mux_t
*mux
, sout_input_t
*input
)
279 int sout_MuxGetStream (sout_mux_t
*p_mux
, int i_blocks
, mtime_t
*pi_dts
)
284 sout_mux_t
*sout_MuxNew (sout_instance_t
*instance
, const char *mux
,
285 sout_access_out_t
*out
)
290 void sout_MuxSendBuffer (sout_mux_t
*mux
, sout_input_t
*input
, block_t
*block
)
295 void sout_StreamChainDelete (sout_stream_t
*p_first
, sout_stream_t
*p_last
)
300 sout_stream_t
*sout_StreamChainNew (sout_instance_t
*p_sout
, char *psz_chain
,
301 sout_stream_t
*p_next
,
302 sout_stream_t
**pp_last
)
307 char *vlc_sdp_Start (vlc_object_t
*obj
, const char *cfg
,
308 const struct sockaddr
*src
, size_t srclen
,
309 const struct sockaddr
*addr
, size_t addrlen
)
313 #endif /* !ENABLE_SOUT */
316 # include <vlc_vlm.h>
318 int vlm_Control (vlm_t
*vlm
, int query
, ...)
324 void vlm_Delete (vlm_t
*vlm
)
330 int vlm_ExecuteCommand (vlm_t
*vlm
, const char *cmd
, vlm_message_t
**pm
)
338 vlm_message_t
*vlm_MessageAdd (vlm_message_t
*a
, vlm_message_t
*b
)
345 void vlm_MessageDelete (vlm_message_t
*m
)
351 vlm_message_t
*vlm_MessageSimpleNew (const char *a
)
357 vlm_message_t
*vlm_MessageNew (const char *a
, const char *fmt
, ...)
361 return vlm_MessageSimpleNew (a
);
365 vlm_t
*vlm_New (vlc_object_t
*obj
)
367 msg_Err (obj
, "VLM not compiled-in!");
370 #endif /* !ENABLE_VLM */