]> git.llucax.com Git - software/mutt-debian.git/blob - url.h
Explicitely use source format 1.0 due to the quilt magic we are using to built mutt...
[software/mutt-debian.git] / url.h
1 #ifndef _URL_H
2 # define _URL_H
3
4 typedef enum url_scheme
5 {
6   U_FILE,
7   U_POP,
8   U_POPS,
9   U_IMAP,
10   U_IMAPS,
11   U_SMTP,
12   U_SMTPS,
13   U_MAILTO,
14   U_UNKNOWN
15 }
16 url_scheme_t;
17
18 #define U_DECODE_PASSWD (1)
19 #define U_PATH          (1 << 1)
20
21 typedef struct ciss_url
22 {
23   url_scheme_t scheme;
24   char *user;
25   char *pass;
26   char *host;
27   unsigned short port;
28   char *path;
29
30 ciss_url_t;
31
32 url_scheme_t url_check_scheme (const char *s);
33 int url_parse_file (char *d, const char *src, size_t dl);
34 int url_parse_ciss (ciss_url_t *ciss, char *src);
35 int url_ciss_tostring (ciss_url_t* ciss, char* dest, size_t len, int flags);
36 int url_parse_mailto (ENVELOPE *e, char **body, const char *src);
37
38 #endif