X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fconf.h;h=6e0a6662a8e106894905987dadea2903d1b577c7;hb=ed9b54bd89b704e6111acbd91b6a7b50e3c30cf5;hp=3a469b27e6e41f2ee9d6b40c8932232dd9510b1c;hpb=e86df9764efd8caa27aa0a2dec0092889aa87c91;p=umurmur.git diff --git a/src/conf.h b/src/conf.h index 3a469b2..6e0a666 100644 --- a/src/conf.h +++ b/src/conf.h @@ -1,5 +1,5 @@ -/* Copyright (C) 2009, Martin Johansson - Copyright (C) 2005-2009, Thorvald Natvig +/* Copyright (C) 2009-2010, Martin Johansson + Copyright (C) 2005-2010, Thorvald Natvig All rights reserved. @@ -42,21 +42,24 @@ typedef enum param { WELCOMETEXT, MAX_BANDWIDTH, MAX_CLIENTS, - DEAFULT_CHANNEL, + DEFAULT_CHANNEL, + USERNAME, + GROUPNAME, } 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);