cscvs to tla changeset 3
[onak.git] / onak-conf.c
diff --git a/onak-conf.c b/onak-conf.c
new file mode 100644 (file)
index 0000000..a3ee64b
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ * onak-conf.c - Routines related to runtime config.
+ *
+ * Jonathan McDowell <noodles@earth.li>
+ *
+ * Copyright 2002 Project Purple
+ */
+
+#include <stdlib.h>
+
+#include "onak-conf.h"
+
+/*
+ *     config - Runtime configuration for onak.
+ *
+ *     Currently this is all hardcoded, but only needs changed here. In future
+ *     it'll be read from a config file.
+ */
+struct onak_config config = {
+       128,                    /* maxkeys */
+
+       /*
+        * Options for the db2 file backend.
+        */
+       "/community/pgp-keyserver/db-copy",     /* db2_dbpath */
+
+       /*
+        * Options for the file backend.
+        */
+       NULL,                   /* file_dbpath */
+       
+       /*
+        * Options for the Postgres backend.
+        */
+       NULL,                   /* pg_dbhost */
+       "noodles",              /* pg_dbname */
+       NULL,                   /* pg_dbuser */
+       NULL,                   /* pg_dbpass */
+};