author | zautrix <zautrix> | 2004-07-03 16:33:12 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-07-03 16:33:12 (UTC) |
commit | e3b89230f065c48c84b48c88edb6eb088374c487 (patch) (unidiff) | |
tree | 162ea2ef909a6f82ccfcedf45d80d6c821174912 /kmicromail/libetpan/tests/option-parser.h | |
parent | 2dd6ac0b2d24c91d35ce674a6c26351352df2b15 (diff) | |
download | kdepimpi-e3b89230f065c48c84b48c88edb6eb088374c487.zip kdepimpi-e3b89230f065c48c84b48c88edb6eb088374c487.tar.gz kdepimpi-e3b89230f065c48c84b48c88edb6eb088374c487.tar.bz2 |
Initial revision
Diffstat (limited to 'kmicromail/libetpan/tests/option-parser.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kmicromail/libetpan/tests/option-parser.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/kmicromail/libetpan/tests/option-parser.h b/kmicromail/libetpan/tests/option-parser.h new file mode 100644 index 0000000..d765332 --- a/dev/null +++ b/kmicromail/libetpan/tests/option-parser.h | |||
@@ -0,0 +1,28 @@ | |||
1 | #ifndef OPTION_PARSER | ||
2 | |||
3 | #define OPTION_PARSER | ||
4 | |||
5 | #include <libetpan/libetpan.h> | ||
6 | |||
7 | enum { | ||
8 | POP3_STORAGE = 0, | ||
9 | IMAP_STORAGE, | ||
10 | NNTP_STORAGE, | ||
11 | MBOX_STORAGE, | ||
12 | MH_STORAGE, | ||
13 | MAILDIR_STORAGE, | ||
14 | }; | ||
15 | |||
16 | int parse_options(int argc, char ** argv, | ||
17 | int * driver, | ||
18 | char ** server, int * port, int * connection_type, | ||
19 | char ** user, char ** password, int * auth_type, | ||
20 | char ** path, char ** cache_directory, | ||
21 | char ** flags_directory); | ||
22 | |||
23 | int init_storage(struct mailstorage * storage, | ||
24 | int driver, char * server, int port, | ||
25 | int connection_type, char * user, char * password, int auth_type, | ||
26 | char * path, char * cache_directory, char * flags_directory); | ||
27 | |||
28 | #endif | ||