diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-06-27T13·55+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-06-27T13·55+0000 |
commit | 3da9687854e029e9df3b612fd592d2d5a622bb20 (patch) | |
tree | 4b51f62373c134bb80ff5aac51ffe613eef755e6 /src/values.hh | |
parent | bb03c45ca03e038c8b74fc1410f48d02ade4c59b (diff) |
* Realisation of File(...) expressions.
Diffstat (limited to 'src/values.hh')
-rw-r--r-- | src/values.hh | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/values.hh b/src/values.hh index d66ae770f97b..1bb00a9dd0d4 100644 --- a/src/values.hh +++ b/src/values.hh @@ -8,21 +8,17 @@ using namespace std; -/* Copy a value to the nixValues directory and register it in dbRefs. - Return the hash code of the value. */ -Hash addValue(string pathName); - +void copyFile(string src, string dst); -/* Delete a value from the nixValues directory. */ -void deleteValue(Hash hash); +/* 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(Hash hash); -/* Obtain the path of a value with the given hash. If a file with - that hash is known to exist in the local file system (as indicated - by the dbRefs database), we use that. Otherwise, we attempt to - fetch it from the network (using dbNetSources). We verify that the - file has the right hash. */ -string queryValuePath(Hash hash); +/* !!! */ +string queryFromStore(Hash hash); #endif /* !__VALUES_H */ |