annotate libmpdemux/url.h @ 3965:303a70069b3d

hu ezt elbaszigeteltem
author gabucino
date Thu, 03 Jan 2002 17:01:37 +0000
parents 5c8a533dfa09
children 639b3b47b138
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
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
10 typedef struct {
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
11 char *url;
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
12 char *protocol;
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
13 char *hostname;
840
9141234715a2 Added initialisation of URL pointers.
bertrand
parents: 833
diff changeset
14 char *file;
833
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
15 unsigned int port;
902
ede5785faa53 Bugs fix, improvements...
bertrand
parents: 840
diff changeset
16 char *username;
ede5785faa53 Bugs fix, improvements...
bertrand
parents: 840
diff changeset
17 char *password;
833
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
18 } URL_t;
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
19
902
ede5785faa53 Bugs fix, improvements...
bertrand
parents: 840
diff changeset
20 URL_t* url_new(char* url);
3040
9fad4017ec37 Added a function to copy URL.
bertrand
parents: 2310
diff changeset
21 URL_t* url_copy(URL_t* url);
902
ede5785faa53 Bugs fix, improvements...
bertrand
parents: 840
diff changeset
22 void url_free(URL_t* url);
833
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
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
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
27 #endif