annotate libmpdemux/url.h @ 5977:e8f6f477aad0

a hack to make ffmjpeg created files viewable with windows dlls too
author alex
date Sun, 05 May 2002 00:31:40 +0000
parents d2a7fcfeec6f
children 1d9f22a32d98
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
902
ede5785faa53 Bugs fix, improvements...
bertrand
parents: 840
diff changeset
1 /*
ede5785faa53 Bugs fix, improvements...
bertrand
parents: 840
diff changeset
2 * URL Helper
ede5785faa53 Bugs fix, improvements...
bertrand
parents: 840
diff changeset
3 * by Bertrand Baudet <bertrand_baudet@yahoo.com>
ede5785faa53 Bugs fix, improvements...
bertrand
parents: 840
diff changeset
4 * (C) 2001, MPlayer team.
ede5785faa53 Bugs fix, improvements...
bertrand
parents: 840
diff changeset
5 */
ede5785faa53 Bugs fix, improvements...
bertrand
parents: 840
diff changeset
6
ede5785faa53 Bugs fix, improvements...
bertrand
parents: 840
diff changeset
7 #ifndef __URL_H
ede5785faa53 Bugs fix, improvements...
bertrand
parents: 840
diff changeset
8 #define __URL_H
833
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
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
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
12 typedef struct {
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
13 char *url;
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
14 char *protocol;
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
15 char *hostname;
840
9141234715a2 Added initialisation of URL pointers.
bertrand
parents: 833
diff changeset
16 char *file;
833
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
17 unsigned int port;
902
ede5785faa53 Bugs fix, improvements...
bertrand
parents: 840
diff changeset
18 char *username;
ede5785faa53 Bugs fix, improvements...
bertrand
parents: 840
diff changeset
19 char *password;
833
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
20 } URL_t;
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
21
902
ede5785faa53 Bugs fix, improvements...
bertrand
parents: 840
diff changeset
22 URL_t* url_new(char* url);
ede5785faa53 Bugs fix, improvements...
bertrand
parents: 840
diff changeset
23 void url_free(URL_t* url);
833
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
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