]> the.earth.li Git - onak.git/blobdiff - onak-conf.h
Add config option to specify keyd socket directory
[onak.git] / onak-conf.h
index 2a9e335c91dc54d64b11b7ff2e910c9155c26430..52439abc1979692e2ccea40bac554aeddd835d6f 100644 (file)
@@ -48,6 +48,8 @@ struct onak_config {
 
        /** Set if we're using keyd as the backend. */
        bool use_keyd;
+       /** The path to the directory the keyd socket lives in. */
+       char *sock_dir;
 
        /*
         * Options for any database backend that needs a directory, be it the
@@ -76,8 +78,8 @@ struct onak_config {
        /** Directory where backend .so files can be found */
        char *backends_dir;
 
-       /** Pointer to the function table for our loaded DB backend */
-       struct dbfuncs *dbbackend;
+       /** Pointer to the initialisation function for our loaded DB backend */
+       struct onak_dbctx *(*dbinit)(bool);
 
        /** Should we verify signature hashes match? */
        bool check_sighash;