Add help text for keyd
[onak.git] / onak-conf.h
index 7b3941528647852fc3a7152e9f5749a53101af65..16763c6d1d8ff3fc6de91a1f1a8c8159abf8069b 100644 (file)
@@ -9,6 +9,8 @@
 #ifndef __ONAK_CONF_H_
 #define __ONAK_CONF_H_
 
+#include "keydb.h"
+
 /*
  *     struct onak_config - Runtime configuration for onak.
  *     @maxkeys: The maximum number of keys a query should return.
@@ -38,6 +40,11 @@ struct onak_config {
        struct ll *syncsites;
        char *logfile;
 
+       /*
+        * Set if we're using keyd as the backend.
+        */
+       bool use_keyd;
+
        /*
         * Options for any database backend that needs a directory, be it the
         * file, db2 or db3 options.
@@ -51,6 +58,14 @@ struct onak_config {
        char *pg_dbname;
        char *pg_dbuser;
        char *pg_dbpass;
+
+       /*
+        * Options for the dynamic backend.
+        */
+       char *db_backend;
+       char *backends_dir;
+
+       struct dbfuncs *dbbackend;
 };
 
 /*