X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fconf.h;h=32531f8653ed2874322a36802fc09f826aae0d9f;hb=320a5588a8f195ee982722729c2b8dc99c68756f;hp=7967716fa04a65a22f43d5493a3a171a77487464;hpb=90a18c3aebe9e2478bc9b24bd2d1680e1487cf8f;p=umurmur.git diff --git a/src/conf.h b/src/conf.h index 7967716..32531f8 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, @@ -43,6 +45,9 @@ typedef enum param { MAX_BANDWIDTH, MAX_CLIENTS, DEFAULT_CHANNEL, + USERNAME, + GROUPNAME, + LOGFILE, } param_t; typedef struct { @@ -57,7 +62,7 @@ typedef struct { const char *destination; } conf_channel_link_t; -int Conf_init(const char *conffile); +void Conf_init(const char *conffile); void Conf_deinit(); const char *getStrConf(param_t param);