X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fconf.h;h=065544654b3f73ad4dfa08495d08f877dcbf73e8;hb=394374e5aa8fc361158b2234581bc412f58eed14;hp=c0a0825c47702c0e4bd68c5f3c08cd610f6346a2;hpb=46d18f60766f997d0ca37c5937f58c0c06477932;p=umurmur.git diff --git a/src/conf.h b/src/conf.h index c0a0825..0655446 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. @@ -42,21 +42,25 @@ 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; + 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(); const char *getStrConf(param_t param);