Update copyright year
[umurmur.git] / src / conf.h
index 67d02c689808ad672eac5d37bcad6aca06ae116b..6a4ee6938d5cf7a293b8ae751bed680b6298e58d 100644 (file)
@@ -1,5 +1,5 @@
-/* Copyright (C) 2009-2011, Martin Johansson <martin@fatbob.nu>
-   Copyright (C) 2005-2011, Thorvald Natvig <thorvald@natvig.com>
+/* Copyright (C) 2009-2014, Martin Johansson <martin@fatbob.nu>
+   Copyright (C) 2005-2014, Thorvald Natvig <thorvald@natvig.com>
 
    All rights reserved.
 
@@ -39,6 +39,7 @@ typedef enum param {
        CERTIFICATE,
        KEY,
        PASSPHRASE,
+       CAPATH,
        BINDPORT,
        BINDADDR,
        WELCOMETEXT,
@@ -48,6 +49,13 @@ typedef enum param {
        USERNAME,
        GROUPNAME,
        LOGFILE,
+       ADMIN_PASSPHRASE,
+       BAN_LENGTH,
+       ALLOW_TEXTMESSAGE,
+       ENABLE_BAN,
+       BANFILE,
+       SYNC_BANFILE,
+       OPUS_THRESHOLD,
 } param_t;
 
 typedef struct {
@@ -55,7 +63,8 @@ typedef struct {
        const char *name;
        const char *description;
        const char *password;
-       bool_t noenter;
+       bool_t noenter, silent;
+       int position;
 } conf_channel_t;
 
 typedef struct {
@@ -65,10 +74,11 @@ typedef struct {
 
 void Conf_init(const char *conffile);
 void Conf_deinit();
-void Conf_test(const char *conffile);
+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);