Mercurial > mplayer.hg
comparison stream/url.h @ 19271:64d82a45a05d
introduce new 'stream' directory for all stream layer related components and split them from libmpdemux
author | ben |
---|---|
date | Mon, 31 Jul 2006 17:39:17 +0000 |
parents | libmpdemux/url.h@a9b7b6055563 |
children | 720206eef78b |
comparison
equal
deleted
inserted
replaced
19270:7d39b911f0bd | 19271:64d82a45a05d |
---|---|
1 /* | |
2 * URL Helper | |
3 * by Bertrand Baudet <bertrand_baudet@yahoo.com> | |
4 * (C) 2001, MPlayer team. | |
5 */ | |
6 | |
7 #ifndef __URL_H | |
8 #define __URL_H | |
9 | |
10 //#define __URL_DEBUG | |
11 | |
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; | |
21 | |
22 URL_t* url_new(const char* url); | |
23 void url_free(URL_t* url); | |
24 | |
25 void url_unescape_string(char *outbuf, const char *inbuf); | |
26 void url_escape_string(char *outbuf, const char *inbuf); | |
27 | |
28 #ifdef __URL_DEBUG | |
29 void url_debug(const URL_t* url); | |
30 #endif // __URL_DEBUG | |
31 | |
32 #endif // __URL_H |