Mercurial > mplayer.hg
annotate libmpdemux/url.h @ 4022:a1e321bd80bd
lavc info+install instructions update
author | gabucino |
---|---|
date | Sun, 06 Jan 2002 23:36:29 +0000 |
parents | 5c8a533dfa09 |
children | 639b3b47b138 |
rev | line source |
---|---|
902 | 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 | |
833 | 9 |
10 typedef struct { | |
11 char *url; | |
12 char *protocol; | |
13 char *hostname; | |
840 | 14 char *file; |
833 | 15 unsigned int port; |
902 | 16 char *username; |
17 char *password; | |
833 | 18 } URL_t; |
19 | |
902 | 20 URL_t* url_new(char* url); |
3040 | 21 URL_t* url_copy(URL_t* url); |
902 | 22 void url_free(URL_t* url); |
833 | 23 |
3496
5c8a533dfa09
Added 2 functions to escape/unescape the url as described in the RFC 2396.
bertrand
parents:
3040
diff
changeset
|
24 void url_unescape_string(char *outbuf, char *inbuf); |
5c8a533dfa09
Added 2 functions to escape/unescape the url as described in the RFC 2396.
bertrand
parents:
3040
diff
changeset
|
25 void url_escape_string(char *outbuf, char *inbuf); |
5c8a533dfa09
Added 2 functions to escape/unescape the url as described in the RFC 2396.
bertrand
parents:
3040
diff
changeset
|
26 |
833 | 27 #endif |