aboutsummaryrefslogtreecommitdiff
path: root/src/db.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-07-07 09:25:26 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-07-07 09:25:26 +0000
commit5895c160c466c0a97716ffdf5ef654eb1c3c6009 (patch)
tree8e2756dd75b785f550c00538e4b97570d6a4c1c6 /src/db.hh
parent609a224848dd08cea35a89b03b64274c82f0a2a7 (diff)
* Make dbRefs a mapping from Hash to [Path].
Diffstat (limited to 'src/db.hh')
-rw-r--r--src/db.hh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/db.hh b/src/db.hh
index 0054dbec1..aee6ce9bf 100644
--- a/src/db.hh
+++ b/src/db.hh
@@ -4,6 +4,8 @@
#include <string>
#include <list>
+#include "util.hh"
+
using namespace std;
typedef pair<string, string> DBPair;
@@ -14,9 +16,15 @@ void createDB(const string & filename, const string & dbname);
bool queryDB(const string & filename, const string & dbname,
const string & key, string & data);
+bool queryListDB(const string & filename, const string & dbname,
+ const string & key, Strings & data);
+
void setDB(const string & filename, const string & dbname,
const string & key, const string & data);
+void setListDB(const string & filename, const string & dbname,
+ const string & key, const Strings & data);
+
void delDB(const string & filename, const string & dbname,
const string & key);