2001-05-18 16:14:06 +00:00
|
|
|
#ifndef URL_H
|
|
|
|
#define URL_H
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
char *url;
|
|
|
|
char *protocol;
|
|
|
|
char *hostname;
|
2001-05-20 12:42:14 +00:00
|
|
|
char *file;
|
2001-05-18 16:14:06 +00:00
|
|
|
unsigned int port;
|
|
|
|
} URL_t;
|
|
|
|
|
|
|
|
URL_t* set_url(char* url);
|
|
|
|
void free_url(URL_t* url);
|
|
|
|
|
|
|
|
#endif
|