/* config.h - Subrelayd configuration loader */ #ifndef __CONFIG_H__ #define __CONFIG_H__ typedef struct subrelay_config { char *maillist_addr; /* C001.1 */ char *imap_host; /* C001.2 */ int imap_port; /* C001.2 */ char *smtp_host; /* C001.3 */ int smtp_port; /* C001.3 */ char *account_pass; /* C001.4 */ char *maillist_name; /* C001.5 */ char *template_path; /* C001.6 */ char *run_user; /* C001.7 */ char *run_group; /* C001.7 */ char *socket_path; /* C001.8 */ char *subscribers_file;/* C001.9 */ } subrelay_config_t; int config_load(subrelay_config_t *cfg, const char *filepath); void config_free(subrelay_config_t *cfg); #endif /* __CONFIG_H__ */