]> git.sesse.net Git - vlc/blob - src/missing.c
a331b8159778294cab9f9eb54e19c86017d75fe9
[vlc] / src / missing.c
1 /*****************************************************************************
2  * missing.c: missing libvlccore symbols
3  *****************************************************************************
4  * Copyright (C) 2008 RĂ©mi Denis-Courmont
5  *
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.
10  *
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.
15  *
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  *****************************************************************************/
20
21 /** \file
22  * This file contains dummy replacement API for disabled features
23  */
24
25 #ifdef HAVE_CONFIG_H
26 # include "config.h"
27 #endif
28
29 #include <vlc_common.h>
30
31 #ifndef ENABLE_HTTPD
32 # include <vlc_httpd.h>
33
34 char *httpd_ClientIP (const httpd_client_t *cl, char *psz_ip)
35 {
36     assert (0);
37 }
38
39 void httpd_ClientModeBidir (httpd_client_t *cl)
40 {
41     assert (0);
42 }
43
44 void httpd_ClientModeStream (httpd_client_t *cl)
45 {
46     assert (0);
47 }
48
49 httpd_file_sys_t *httpd_FileDelete (httpd_file_t *file)
50 {
51     assert (0);
52 }
53
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,
57                              const vlc_acl_t *acl,
58                              httpd_file_callback_t cb, httpd_file_sys_t *data)
59 {
60     assert (0);
61 }
62
63 httpd_handler_sys_t *httpd_HandlerDelete (httpd_handler_t *handler)
64 {
65     assert (0);
66 }
67
68 httpd_handler_t *httpd_HandlerNew (httpd_host_t *host, const char *url,
69                                    const char *login, const char *password,
70                                    const vlc_acl_t *acl,
71                                    httpd_handler_callback_t cb,
72                                    httpd_handler_sys_t *data)
73 {
74     assert (0);
75 }
76
77 void httpd_HostDelete (httpd_host_t *h)
78 {
79     assert (0);
80 }
81
82 httpd_host_t *httpd_HostNew (vlc_object_t *obj, const char *host, int port)
83 {
84     return httpd_TLSHostNew (obj, host, port, NULL, NULL, NULL, NULL);
85 }
86
87 void httpd_MsgAdd (httpd_message_t *m, const char *name, const char *fmt, ...)
88 {
89     assert (0);
90 }
91
92 const char *httpd_MsgGet (const httpd_message_t *m, const char *name)
93 {
94     assert (0);
95 }
96
97 void httpd_RedirectDelete (httpd_redirect_t *r)
98 {
99     assert (0);
100 }
101
102 httpd_redirect_t *httpd_RedirectNew (httpd_host_t *host,
103                                      const char *dst, const char *src)
104 {
105     assert (0);
106 }
107
108 char *httpd_ServerIP (const httpd_client_t *client, char *ip)
109 {
110     assert (0);
111 }
112
113 void httpd_StreamDelete (httpd_stream_t *stream)
114 {
115     assert (0);
116 }
117
118 int httpd_StreamHeader (httpd_stream_t *stream, uint8_t *data, int count)
119 {
120     assert (0);
121 }
122
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)
127 {
128     assert (0);
129 }
130
131 int httpd_StreamSend (httpd_stream_t *stream, uint8_t *data, int count)
132 {
133     assert (0);
134 }
135
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)
139 {
140      msg_Err (obj, "VLC httpd support not compiled-in!");
141      return NULL;
142 }
143
144 int httpd_UrlCatch (httpd_url_t *url, int request, httpd_callback_t cb,
145                     httpd_callback_sys_t *data)
146 {
147     assert (0);
148 }
149
150 void httpd_UrlDelete (httpd_url_t *url)
151 {
152     assert (0);
153 }
154
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)
158 {
159     assert (0);
160 }
161
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)
165 {
166     assert (0);
167 }
168 #endif /* !ENABLE_HTTPD */
169
170 #ifndef ENABLE_SOUT
171
172 # ifndef ENABLE_VLM
173 #  include <vlc_vlm.h>
174
175 int vlm_Control (vlm_t *vlm, int query, ...)
176 {
177     assert (0);
178 }
179
180 void vlm_Delete (vlm_t *vlm)
181 {
182     assert (0);
183 }
184
185 int vlm_ExecuteCommand (vlm_t *vlm, const char *cmd, vlm_message_t **pm)
186 {
187     assert (0);
188 }
189
190 vlm_message_t *vlm_MessageAdd (vlm_message_t *a, vlm_message_t *b)
191 {
192     assert (0);
193 }
194
195 void vlm_MessageDelete (vlm_message_t *m)
196 {
197     assert (0);
198 }
199
200 vlm_message_t *vlm_MessageNew (const char *a, const char *fmt, ...)
201 {
202     return NULL;
203 }
204
205 vlm_t *__vlm_New (vlc_object_t *obj)
206 {
207      msg_Err (obj, "VLM not compiled-in!");
208      return NULL;
209 }
210
211 # endif /* !ENABLE_VLM */
212 #endif /* !ENABLE_SOUT */