about summary refs log tree commit diff
path: root/src/globals.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-07-31T13·47+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-07-31T13·47+0000
commit4a013962bdd08ee0cf285136e4eca0f2c9c76b98 (patch)
treec354204a50cc2c0a5e8873e2e5dab98316f42a5d /src/globals.hh
parent758bd4673a3553fcbd78c8f895d6efe839d3d538 (diff)
* Started using Berkeley DB environments. This is necessary for
  transaction support (but we don't actually use transactions yet).

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 fbb020df7c91..9df827622237 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();