Fix:
[mplayer/glamo.git] / libmpdemux / url.h
blobe344e75c85013c5a4e853011522b5961d6c29003
1 /*
2 * URL Helper
3 * by Bertrand Baudet <bertrand_baudet@yahoo.com>
4 * (C) 2001, MPlayer team.
5 */
7 #ifndef __URL_H
8 #define __URL_H
10 //#define __URL_DEBUG
12 typedef struct {
13 char *url;
14 char *protocol;
15 char *hostname;
16 char *file;
17 unsigned int port;
18 char *username;
19 char *password;
20 } URL_t;
22 URL_t* url_new(const char* url);
23 void url_free(URL_t* url);
25 void url_unescape_string(char *outbuf, const char *inbuf);
26 void url_escape_string(char *outbuf, const char *inbuf);
28 #ifdef __URL_DEBUG
29 void url_debug(const URL_t* url);
30 #endif // __URL_DEBUG
32 #endif // __URL_H