From 224c585aba5e450fa47e41c4cc19dac2d0c6fe2a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 7 Jul 2003 07:43:58 +0000 Subject: * Refactoring on the file names. --- src/store.hh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/store.hh (limited to 'src/store.hh') 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 + +#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 */ -- cgit 1.4.1