Add show-addresses option, to optionally hide user's IP addresses
[umurmur.git] / src / conf.h
index 36115b0f108922fbc4ef46153e1dca908cab9950..5f028d0e4debc0b635858fb6dc937f34bdfa23c4 100644 (file)
@@ -1,5 +1,5 @@
-/* Copyright (C) 2009-2012, Martin Johansson <martin@fatbob.nu>
-   Copyright (C) 2005-2012, 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.
 
 #define CONF_H_24564356
 
 #include "messages.h"
-
-#define DEFAULT_CONFIG "/etc/umurmur.conf"
+#include "config.h"
 
 typedef enum param {
        CERTIFICATE,
        KEY,
        PASSPHRASE,
+       CAPATH,
        BINDPORT,
+       BINDPORT6,
        BINDADDR,
+       BINDADDR6,
        WELCOMETEXT,
        MAX_BANDWIDTH,
        MAX_CLIENTS,
@@ -52,6 +54,10 @@ typedef enum param {
        BAN_LENGTH,
        ALLOW_TEXTMESSAGE,
        ENABLE_BAN,
+       BANFILE,
+       SYNC_BANFILE,
+       OPUS_THRESHOLD,
+       SHOW_ADDRESSES,
 } param_t;
 
 typedef struct {
@@ -59,7 +65,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 {