about summary refs log tree commit diff
path: root/src/store.hh
diff options
context:
space:
mode:
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 000000000000..b96fa30ba8e9
--- /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 */