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>
32 # include <vlc_httpd.h>
34 char *httpd_ClientIP (const httpd_client_t *cl, char *psz_ip)
39 void httpd_ClientModeBidir (httpd_client_t *cl)
44 void httpd_ClientModeStream (httpd_client_t *cl)
49 httpd_file_sys_t *httpd_FileDelete (httpd_file_t *file)
54 httpd_file_t *httpd_FileNew (httpd_host_t *host,
55 const char *url, const char *content_type,
56 const char *login, const char *password,
58 httpd_file_callback_t cb, httpd_file_sys_t *data)
63 httpd_handler_sys_t *httpd_HandlerDelete (httpd_handler_t *handler)
68 httpd_handler_t *httpd_HandlerNew (httpd_host_t *host, const char *url,
69 const char *login, const char *password,
71 httpd_handler_callback_t cb,
72 httpd_handler_sys_t *data)
77 void httpd_HostDelete (httpd_host_t *h)
82 httpd_host_t *httpd_HostNew (vlc_object_t *obj, const char *host, int port)
84 return httpd_TLSHostNew (obj, host, port, NULL, NULL, NULL, NULL);
87 void httpd_MsgAdd (httpd_message_t *m, const char *name, const char *fmt, ...)
92 const char *httpd_MsgGet (const httpd_message_t *m, const char *name)
97 void httpd_RedirectDelete (httpd_redirect_t *r)
102 httpd_redirect_t *httpd_RedirectNew (httpd_host_t *host,
103 const char *dst, const char *src)
108 char *httpd_ServerIP (const httpd_client_t *client, char *ip)
113 void httpd_StreamDelete (httpd_stream_t *stream)
118 int httpd_StreamHeader (httpd_stream_t *stream, uint8_t *data, int count)
123 httpd_stream_t *httpd_StreamNew (httpd_host_t *host,
124 const char *url, const char *content_type,
125 const char *login, const char *password,
126 const vlc_acl_t *acl)
131 int httpd_StreamSend (httpd_stream_t *stream, uint8_t *data, int count)
136 httpd_host_t *httpd_TLSHostNew (vlc_object_t *obj, const char *host, int port,
137 const char *cert, const char *key,
138 const char *ca, const char *crl)
140 msg_Err (obj, "VLC httpd support not compiled-in!");
144 int httpd_UrlCatch (httpd_url_t *url, int request, httpd_callback_t cb,
145 httpd_callback_sys_t *data)
150 void httpd_UrlDelete (httpd_url_t *url)
155 httpd_url_t *httpd_UrlNew (httpd_host_t *host, const char *url,
156 const char *login, const char *password,
157 const vlc_acl_t *acl)
162 httpd_url_t *httpd_UrlNewUnique (httpd_host_t *host, const char *url,
163 const char *login, const char *password,
164 const vlc_acl_t *acl)
168 #endif /* !ENABLE_HTTPD */
173 # include <vlc_vlm.h>
175 int vlm_Control (vlm_t *vlm, int query, ...)
180 void vlm_Delete (vlm_t *vlm)
185 int vlm_ExecuteCommand (vlm_t *vlm, const char *cmd, vlm_message_t **pm)
190 vlm_message_t *vlm_MessageAdd (vlm_message_t *a, vlm_message_t *b)
195 void vlm_MessageDelete (vlm_message_t *m)
200 vlm_message_t *vlm_MessageNew (const char *a, const char *fmt, ...)
205 vlm_t *__vlm_New (vlc_object_t *obj)
207 msg_Err (obj, "VLM not compiled-in!");
211 # endif /* !ENABLE_VLM */
212 #endif /* !ENABLE_SOUT */