aboutsummaryrefslogtreecommitdiff
path: root/src/store.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-07-07 07:43:58 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-07-07 07:43:58 +0000
commit224c585aba5e450fa47e41c4cc19dac2d0c6fe2a (patch)
treec01d0ce342be0d7aacb7c95e8b8f85d6cd4ec53f /src/store.hh
parent7952a8053c474e771d6ee14e3ab6dc15c9ddd895 (diff)
* Refactoring on the file names.
Diffstat (limited to 'src/store.hh')
-rw-r--r--src/store.hh24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/store.hh b/src/store.hh
new file mode 100644
index 000000000..b96fa30ba
--- /dev/null
+++ b/src/store.hh
@@ -0,0 +1,24 @@
+#ifndef __VALUES_H
+#define __VALUES_H
+
+#include <string>
+
+#include "hash.hh"
+
+using namespace std;
+
+
+void copyPath(string src, string dst);
+
+/* Copy a file to the nixStore directory and register it in dbRefs.
+ Return the hash code of the value. */
+void addToStore(string srcPath, string & dstPath, Hash & hash);
+
+/* Delete a value from the nixStore directory. */
+void deleteFromStore(const string & path);
+
+/* !!! */
+string queryFromStore(Hash hash);
+
+
+#endif /* !__VALUES_H */