X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fconf.h;h=67d02c689808ad672eac5d37bcad6aca06ae116b;hb=ddc0e8af6bbcb1f7635ea78297c5158611821aec;hp=04beaa3ba55428d44b4de29bba472e73bd758981;hpb=01e804f06e00c36c5680ebde07cbe17e6b256dc4;p=umurmur.git diff --git a/src/conf.h b/src/conf.h index 04beaa3..67d02c6 100644 --- a/src/conf.h +++ b/src/conf.h @@ -1,5 +1,5 @@ -/* Copyright (C) 2009-2010, Martin Johansson - Copyright (C) 2005-2010, Thorvald Natvig +/* Copyright (C) 2009-2011, Martin Johansson + Copyright (C) 2005-2011, Thorvald Natvig All rights reserved. @@ -33,6 +33,8 @@ #include "messages.h" +#define DEFAULT_CONFIG "/etc/umurmur.conf" + typedef enum param { CERTIFICATE, KEY, @@ -42,23 +44,28 @@ typedef enum param { WELCOMETEXT, MAX_BANDWIDTH, MAX_CLIENTS, - DEAFULT_CHANNEL, + DEFAULT_CHANNEL, + USERNAME, + GROUPNAME, + LOGFILE, } param_t; typedef struct { - char parent[MAX_TEXT]; - char name[MAX_TEXT]; - char description[MAX_TEXT]; + const char *parent; + const char *name; + const char *description; + const char *password; bool_t noenter; } conf_channel_t; typedef struct { - char source[MAX_TEXT]; - char destination[MAX_TEXT]; + const char *source; + const char *destination; } conf_channel_link_t; -int Conf_init(const char *conffile); +void Conf_init(const char *conffile); void Conf_deinit(); +void Conf_test(const char *conffile); const char *getStrConf(param_t param); int getIntConf(param_t param);