X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/6f0d21388eeeb33893728d92dfc0f3a3a6d6aafe..59e5def499b3e9ae3587ebae2bef8794a1df34ea:/onak-conf.h diff --git a/onak-conf.h b/onak-conf.h index 03f1e8b..16763c6 100644 --- a/onak-conf.h +++ b/onak-conf.h @@ -9,7 +9,7 @@ #ifndef __ONAK_CONF_H_ #define __ONAK_CONF_H_ -#define VERSION "0.2.1" +#include "keydb.h" /* * struct onak_config - Runtime configuration for onak. @@ -40,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. @@ -53,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; }; /*