Add config file test flag to umurmurd.
[umurmur.git] / src / conf.h
index 6e0a6662a8e106894905987dadea2903d1b577c7..20141dcca468d06a8f3d242d591130c1fc6fb912 100644 (file)
@@ -1,5 +1,5 @@
-/* Copyright (C) 2009-2010, Martin Johansson <martin@fatbob.nu>
-   Copyright (C) 2005-2010, Thorvald Natvig <thorvald@natvig.com>
+/* Copyright (C) 2009-2011, Martin Johansson <martin@fatbob.nu>
+   Copyright (C) 2005-2011, Thorvald Natvig <thorvald@natvig.com>
 
    All rights reserved.
 
@@ -33,6 +33,8 @@
 
 #include "messages.h"
 
+#define DEFAULT_CONFIG "/etc/umurmur.conf"
+
 typedef enum param {
        CERTIFICATE,
        KEY,
@@ -45,12 +47,14 @@ typedef enum param {
        DEFAULT_CHANNEL,
        USERNAME,
        GROUPNAME,
+       LOGFILE,
 } param_t;
 
 typedef struct {
        const char *parent;
        const char *name;
        const char *description;
+       const char *password;
        bool_t noenter;
 } conf_channel_t;
 
@@ -61,6 +65,7 @@ typedef struct {
 
 void Conf_init(const char *conffile);
 void Conf_deinit();
+bool_t Conf_ok(const char *conffile);
 
 const char *getStrConf(param_t param);
 int getIntConf(param_t param);