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
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 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 General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, 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
)
40 void httpd_ClientModeBidir (httpd_client_t
*cl
)
45 void httpd_ClientModeStream (httpd_client_t
*cl
)
50 httpd_file_sys_t
*httpd_FileDelete (httpd_file_t
*file
)
55 httpd_file_t
*httpd_FileNew (httpd_host_t
*host
,
56 const char *url
, const char *content_type
,
57 const char *login
, const char *password
,
59 httpd_file_callback_t cb
, httpd_file_sys_t
*data
)
64 httpd_handler_sys_t
*httpd_HandlerDelete (httpd_handler_t
*handler
)
69 httpd_handler_t
*httpd_HandlerNew (httpd_host_t
*host
, const char *url
,
70 const char *login
, const char *password
,
72 httpd_handler_callback_t cb
,
73 httpd_handler_sys_t
*data
)
78 void httpd_HostDelete (httpd_host_t
*h
)
83 httpd_host_t
*httpd_HostNew (vlc_object_t
*obj
, const char *host
, int port
)
85 return httpd_TLSHostNew (obj
, host
, port
, NULL
, NULL
, NULL
, NULL
);
88 void httpd_MsgAdd (httpd_message_t
*m
, const char *name
, const char *fmt
, ...)
93 const char *httpd_MsgGet (const httpd_message_t
*m
, const char *name
)
98 void httpd_RedirectDelete (httpd_redirect_t
*r
)
103 httpd_redirect_t
*httpd_RedirectNew (httpd_host_t
*host
,
104 const char *dst
, const char *src
)
109 char *httpd_ServerIP (const httpd_client_t
*client
, char *ip
)
114 void httpd_StreamDelete (httpd_stream_t
*stream
)
119 int httpd_StreamHeader (httpd_stream_t
*stream
, uint8_t *data
, int count
)
124 httpd_stream_t
*httpd_StreamNew (httpd_host_t
*host
,
125 const char *url
, const char *content_type
,
126 const char *login
, const char *password
,
127 const vlc_acl_t
*acl
)
132 int httpd_StreamSend (httpd_stream_t
*stream
, uint8_t *data
, int count
)
137 httpd_host_t
*httpd_TLSHostNew (vlc_object_t
*obj
, const char *host
, int port
,
138 const char *cert
, const char *key
,
139 const char *ca
, const char *crl
)
141 msg_Err (obj
, "VLC httpd support not compiled-in!");
145 int httpd_UrlCatch (httpd_url_t
*url
, int request
, httpd_callback_t cb
,
146 httpd_callback_sys_t
*data
)
151 void httpd_UrlDelete (httpd_url_t
*url
)
156 httpd_url_t
*httpd_UrlNew (httpd_host_t
*host
, const char *url
,
157 const char *login
, const char *password
,
158 const vlc_acl_t
*acl
)
163 httpd_url_t
*httpd_UrlNewUnique (httpd_host_t
*host
, const char *url
,
164 const char *login
, const char *password
,
165 const vlc_acl_t
*acl
)
169 #endif /* !ENABLE_HTTPD */
172 # include <vlc_sout.h>
174 char *sdp_AddMedia (char **sdp
, const char *type
, const char *protocol
,
175 int dport
, unsigned pt
, bool bw_indep
, unsigned bw
,
176 const char *ptname
, unsigned clockrate
, unsigned channels
,
179 assert (*sdp
== NULL
);
183 char *sdp_AddAttribute (char **sdp
, const char *name
, const char *fmt
, ...)
185 assert (*sdp
== NULL
);
189 int sout_AccessOutControl (sout_access_out_t
*out
, int query
, ...)
194 void sout_AccessOutDelete (sout_access_out_t
*out
)
199 #undef sout_AccessOutNew
200 sout_access_out_t
*sout_AccessOutNew (vlc_object_t
*obj
,
201 const char *access
, const char *name
)
203 msg_Err (obj
, "Output support not compiled-in!");
207 ssize_t
sout_AccessOutRead (sout_access_out_t
*out
, block_t
*block
)
212 int sout_AccessOutSeek (sout_access_out_t
*out
, off_t offset
)
217 ssize_t
sout_AccessOutWrite (sout_access_out_t
*out
, block_t
*block
)
222 #undef sout_AnnounceRegisterSDP
223 session_descriptor_t
*sout_AnnounceRegisterSDP (vlc_object_t
*obj
,
226 announce_method_t
*method
)
228 msg_Err (obj
, "SDP export not compiled-in!");
229 assert (method
== NULL
);
233 #undef sout_AnnounceUnRegister
234 sout_AnnounceUnRegister (vlc_object_t
*obj
, session_descriptor_t
*d
)
239 void sout_MethodRelease (announce_method_t
*method
)
244 sout_input_t
*sout_MuxAddStream (sout_mux_t
*mux
, es_format_t
*fmt
)
249 void sout_MuxDelete (sout_mux_t
*mux
)
254 void sout_MuxDeleteStream (sout_mux_t
*mux
, sout_input_t
*input
)
259 sout_mux_t
*sout_MuxNew (sout_instance_t
*instance
, char *mux
,
260 sout_access_out_t
*out
)
265 void sout_MuxSendBuffer (sout_mux_t
*mux
, sout_input_t
*input
, block_t
*block
)
270 announce_method_t
*sout_SAPMethod (void)
275 void sout_StreamDelete (sout_stream_t
*stream
)
280 sout_stream_t
*sout_StreamNew (sout_instance_t
*instance
, char *chain
)
285 void sout_UpdateStatistic (sout_instance_t
*instance
, sout_statistic_t stat
,
291 char *vlc_sdp_Start (vlc_object_t
*obj
, const char *cfg
,
292 const struct sockaddr
*src
, size_t srclen
,
293 const struct sockaddr
*addr
, size_t addrlen
)
297 #endif /* !ENABLE_SOUT */
300 # include <vlc_vlm.h>
302 int vlm_Control (vlm_t
*vlm
, int query
, ...)
307 void vlm_Delete (vlm_t
*vlm
)
312 int vlm_ExecuteCommand (vlm_t
*vlm
, const char *cmd
, vlm_message_t
**pm
)
317 vlm_message_t
*vlm_MessageAdd (vlm_message_t
*a
, vlm_message_t
*b
)
322 void vlm_MessageDelete (vlm_message_t
*m
)
327 vlm_message_t
*vlm_MessageNew (const char *a
, const char *fmt
, ...)
332 vlm_t
*__vlm_New (vlc_object_t
*obj
)
334 msg_Err (obj
, "VLM not compiled-in!");
337 #endif /* !ENABLE_VLM */