/*
 * kakumei_config.h
 *
 * Config management for the kakumei server.
 *
 * Header file.
 *
 * Author: Dario Rodriguez dario@softhome.net
 * This program is licensed under the terms of the Affero GPL v1.0+ license.
 */

#ifndef KAKUMEI_CONFIG_H
#define KAKUMEI_CONFIG_H
typedef struct kaconfig {
        /* general */
        char *logfile;
        char *cookiename;
        char *cookiedomain;
        char *bannerpath;
        int sslproxy;
        /* mail */
        char *from;
        char *subjpost;
        char *subjcomment;
        int sizelines;
        int usedlines;
        char **lines;
} kaconfig;

kaconfig *kaconfig_init(char *configfile);
void kaconfig_free(kaconfig *config);

int kaconfig_exists(char *configfile);
int kaconfig_write(char *configfile,char *logfile,char *cookiename,char *cookiedomain, char *bannerpath, int sslproxy);
#endif