Mercurial > mplayer.hg
annotate libmpdemux/url.h @ 4980:0e6e50c02f7b
direct rendering support
author | arpi |
---|---|
date | Thu, 07 Mar 2002 16:57:40 +0000 |
parents | d2a7fcfeec6f |
children | 1d9f22a32d98 |
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 |
4119
639b3b47b138
Added a debug function to print the struct's variables.
bertrand
parents:
3496
diff
changeset
|
10 //#define __URL_DEBUG |
639b3b47b138
Added a debug function to print the struct's variables.
bertrand
parents:
3496
diff
changeset
|
11 |
833 | 12 typedef struct { |
13 char *url; | |
14 char *protocol; | |
15 char *hostname; | |
840 | 16 char *file; |
833 | 17 unsigned int port; |
902 | 18 char *username; |
19 char *password; | |
833 | 20 } URL_t; |
21 | |
902 | 22 URL_t* url_new(char* url); |
23 void url_free(URL_t* url); | |
833 | 24 |
3496
5c8a533dfa09
Added 2 functions to escape/unescape the url as described in the RFC 2396.
bertrand
parents:
3040
diff
changeset
|
25 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
|
26 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
|
27 |
4119
639b3b47b138
Added a debug function to print the struct's variables.
bertrand
parents:
3496
diff
changeset
|
28 #ifndef __URL_DEBUG |
639b3b47b138
Added a debug function to print the struct's variables.
bertrand
parents:
3496
diff
changeset
|
29 void url_debug(URL_t* url); |
639b3b47b138
Added a debug function to print the struct's variables.
bertrand
parents:
3496
diff
changeset
|
30 #endif // __URL_DEBUG |
639b3b47b138
Added a debug function to print the struct's variables.
bertrand
parents:
3496
diff
changeset
|
31 |
639b3b47b138
Added a debug function to print the struct's variables.
bertrand
parents:
3496
diff
changeset
|
32 #endif // __URL_H |