about summary refs log tree commit diff
path: root/src/globals.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/globals.hh')
-rw-r--r--src/globals.hh17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/globals.hh b/src/globals.hh
index fbb020df7c..9df8276222 100644
--- a/src/globals.hh
+++ b/src/globals.hh
@@ -3,10 +3,15 @@
 
 #include <string>
 
+#include "db.hh"
+
 using namespace std;
 
 
-/* Database names. */
+extern Database nixDB;
+
+
+/* Database tables. */
 
 /* dbPath2Id :: Path -> FSId
 
@@ -60,12 +65,14 @@ extern string nixDataDir; /* !!! fix */
 /* nixLogDir is the directory where we log various operations. */ 
 extern string nixLogDir;
 
-/* nixDB is the file name of the Berkeley DB database where we
-   maintain the dbXXX mappings. */
-extern string nixDB;
+/* nixDBPath is the path name of our Berkeley DB environment. */
+extern string nixDBPath;
+
 
+/* Open the database environment. */
+void openDB();
 
-/* Initialize the databases. */
+/* Create the required database tables. */
 void initDB();