X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/feb5361ac535c09eb8dbda4cd25157c77764c287..e53eb5db2367eb5bf2ec72272e068fe57f3ba6a0:/onak-conf.h diff --git a/onak-conf.h b/onak-conf.h index 7b39415..16763c6 100644 --- a/onak-conf.h +++ b/onak-conf.h @@ -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; }; /*