From e3b89230f065c48c84b48c88edb6eb088374c487 Mon Sep 17 00:00:00 2001 From: zautrix Date: Sat, 03 Jul 2004 16:33:12 +0000 Subject: Initial revision --- (limited to 'kmicromail/libetpan/tests/option-parser.h') 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 @@ +#ifndef OPTION_PARSER + +#define OPTION_PARSER + +#include + +enum { + POP3_STORAGE = 0, + IMAP_STORAGE, + NNTP_STORAGE, + MBOX_STORAGE, + MH_STORAGE, + MAILDIR_STORAGE, +}; + +int parse_options(int argc, char ** argv, + int * driver, + char ** server, int * port, int * connection_type, + char ** user, char ** password, int * auth_type, + char ** path, char ** cache_directory, + char ** flags_directory); + +int init_storage(struct mailstorage * storage, + int driver, char * server, int port, + int connection_type, char * user, char * password, int auth_type, + char * path, char * cache_directory, char * flags_directory); + +#endif -- cgit v0.9.0.2