freeswitch/libs/libetpan/tests/option-parser.h
Michael Jerris 838eb8aaec add libetpan 0.48 to in tree libs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3763 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-20 20:28:56 +00:00

29 lines
700 B
C

#ifndef OPTION_PARSER
#define OPTION_PARSER
#include <libetpan/libetpan.h>
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, const char * server, int port,
int connection_type, const char * user, const char * password, int auth_type,
const char * path, const char * cache_directory, const char * flags_directory);
#endif