File: url.h

package info (click to toggle)
mutt 2.0.5-4.1%2Bdeb11u3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 26,212 kB
  • sloc: ansic: 97,386; sh: 4,703; perl: 2,018; makefile: 726; python: 547; yacc: 318
file content (39 lines) | stat: -rw-r--r-- 748 bytes parent folder | download | duplicates (3)
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
#ifndef _URL_H
# define _URL_H

typedef enum url_scheme
{
  U_FILE,
  U_POP,
  U_POPS,
  U_IMAP,
  U_IMAPS,
  U_SMTP,
  U_SMTPS,
  U_MAILTO,
  U_UNKNOWN
}
url_scheme_t;

#define U_DECODE_PASSWD (1)
#define U_PATH          (1 << 1)

typedef struct ciss_url
{
  url_scheme_t scheme;
  char *user;
  char *pass;
  char *host;
  unsigned short port;
  char *path;
}
ciss_url_t;

url_scheme_t url_check_scheme (const char *s);
int url_parse_file (char *d, const char *src, size_t dl);
int url_parse_ciss (ciss_url_t *ciss, char *src);
int url_ciss_tostring (ciss_url_t* ciss, char* dest, size_t len, int flags);
int url_ciss_tobuffer (ciss_url_t* ciss, BUFFER* dest, int flags);
int url_parse_mailto (ENVELOPE *e, char **body, const char *src);

#endif