X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;ds=inline;f=onak-conf.h;h=6d7500aab096fc08fb86c02b2fdbe193d97c543d;hb=357fbc65bfab230bbf12313e8b458d8325a6174f;hp=d0495207af945f561e26d778f18a65c566fb845b;hpb=90e64dba702acb22eef4f6d70dc0ac885b1bedbf;p=onak.git
diff --git a/onak-conf.h b/onak-conf.h
index d049520..6d7500a 100644
--- a/onak-conf.h
+++ b/onak-conf.h
@@ -14,14 +14,15 @@
* more details.
*
* You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 51
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * this program. If not, see .
*/
#ifndef __ONAK_CONF_H_
#define __ONAK_CONF_H_
-#include "keydb.h"
+#include
+
+#include "ll.h"
/**
* @brief Backend database configuration.
@@ -115,9 +116,23 @@ extern struct onak_config config;
*/
void readconfig(const char *configfile);
+/**
+ * @brief write the onak config.
+ * @param configfile the config file to write to.
+ *
+ * Write out the config file. If config file is NULL write it to STDOUT.
+ */
+void writeconfig(const char *configfile);
+
/**
* @brief clean up the config when we're shutting down.
*/
void cleanupconfig(void);
+
+/**
+ * @brief Find a specified backend configuration by name.
+ */
+struct onak_db_config *find_db_backend_config(struct ll *backends, char *name);
+
#endif /* __ONAK_CONF_H_ */