Introduce ADD_ALL_DIRS function to factorize clean and distclean target commands
[mplayer/glamo.git] / stream / url.h
blob1f13bee1d743f082f9152e4cc7314a798fecd255
1 /*
2 * URL Helper
3 * by Bertrand Baudet <bertrand_baudet@yahoo.com>
4 * (C) 2001, MPlayer team.
5 */
7 #ifndef MPLAYER_URL_H
8 #define MPLAYER_URL_H
10 //#define URL_DEBUG
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;
22 URL_t *url_redirect(URL_t **url, const char *redir);
23 URL_t* url_new(const char* url);
24 void url_free(URL_t* url);
26 void url_unescape_string(char *outbuf, const char *inbuf);
27 void url_escape_string(char *outbuf, const char *inbuf);
29 #ifdef URL_DEBUG
30 void url_debug(const URL_t* url);
31 #endif /* URL_DEBUG */
33 #endif /* MPLAYER_URL_H */