X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fconf.h;h=36115b0f108922fbc4ef46153e1dca908cab9950;hb=792fd933e851a751885e58ed5ed59939d3be8f84;hp=065544654b3f73ad4dfa08495d08f877dcbf73e8;hpb=ebdd6565cbbd2db46833530112c15be0e22afc29;p=umurmur.git diff --git a/src/conf.h b/src/conf.h index 0655446..36115b0 100644 --- a/src/conf.h +++ b/src/conf.h @@ -1,5 +1,5 @@ -/* Copyright (C) 2009-2011, Martin Johansson - Copyright (C) 2005-2011, Thorvald Natvig +/* Copyright (C) 2009-2012, Martin Johansson + Copyright (C) 2005-2012, Thorvald Natvig All rights reserved. @@ -33,6 +33,8 @@ #include "messages.h" +#define DEFAULT_CONFIG "/etc/umurmur.conf" + typedef enum param { CERTIFICATE, KEY, @@ -46,12 +48,17 @@ typedef enum param { USERNAME, GROUPNAME, LOGFILE, + ADMIN_PASSPHRASE, + BAN_LENGTH, + ALLOW_TEXTMESSAGE, + ENABLE_BAN, } param_t; typedef struct { const char *parent; const char *name; const char *description; + const char *password; bool_t noenter; } conf_channel_t; @@ -62,9 +69,11 @@ typedef struct { void Conf_init(const char *conffile); void Conf_deinit(); +bool_t Conf_ok(const char *conffile); const char *getStrConf(param_t param); int getIntConf(param_t param); +bool_t getBoolConf(param_t param); int Conf_getNextChannel(conf_channel_t *chdesc, int index); int Conf_getNextChannelLink(conf_channel_link_t *chlink, int index);