mp3_hdr.h: fix mp_check_mp3_header()
[mplayer/glamo.git] / stream / url.h
blobb75978af2c1efd622b798e5670e0fc00ffd0fe5d
1 /*
2 * URL Helper
4 * Copyright (C) 2001 Bertrand Baudet <bertrand_baudet@yahoo.com>
6 * This file is part of MPlayer.
8 * MPlayer is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * MPlayer is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License along
19 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 #ifndef MPLAYER_URL_H
24 #define MPLAYER_URL_H
26 //#define URL_DEBUG
28 typedef struct {
29 char *url;
30 char *noauth_url;
31 char *protocol;
32 char *hostname;
33 char *file;
34 unsigned int port;
35 char *username;
36 char *password;
37 } URL_t;
39 URL_t *url_redirect(URL_t **url, const char *redir);
41 int make_http_proxy_url(URL_t *proxy, const char *host_url, char *dst, int dst_size);
43 URL_t* url_new(const char* url);
44 void url_free(URL_t* url);
46 void url_unescape_string(char *outbuf, const char *inbuf);
47 void url_escape_string(char *outbuf, const char *inbuf);
49 #ifdef URL_DEBUG
50 void url_debug(const URL_t* url);
51 #endif /* URL_DEBUG */
53 #endif /* MPLAYER_URL_H */