urli.c
987 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include <url.h>
int
(url_get_scheme) (const url_t url, char * scheme, unsigned int n)
{ return url->_get_scheme(url, scheme, n); }
int
(url_get_user) (const url_t url, char *user, unsigned int n)
{ return url->_get_user(url, user, n); }
int
(url_get_passwd) (const url_t url, char *passwd, unsigned int n)
{ return url->_get_passwd(url, passwd, n); }
int
(url_get_host) (const url_t url, char * host, unsigned int n)
{ return url->_get_host(url, host, n); }
int
(url_get_port) (const url_t url, long * port)
{ return url->_get_port(url, port); }
int
(url_get_path) (const url_t url, char *path, unsigned int n)
{ return url->_get_path(url, path, n); }
int
(url_get_query) (const url_t url, char *query, unsigned int n)
{ return url->_get_query(url, query, n); }
int
(url_is_pop) (const url_t url)
{ return (url->type & URL_POP); }
int
(url_is_imap) (const url_t url)
{ return (url->type & URL_IMAP); }
int
(url_is_unixmbox) (const url_t url)
{ return (url->type & URL_MBOX); }