diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-12-05T01·31+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-12-05T01·31+0000 |
commit | 29cf434a35d82529f56c085c9cd50858c148d086 (patch) | |
tree | ed6df2ab56312989b4e8e50ba5b246b9d5641396 /src/libstore/store-api.hh | |
parent | 8623256f483f77e090e689ae332165a530a489a5 (diff) |
* The determination of the root set should be made by the privileged
process, so forward the operation. * Spam the user about GC misconfigurations (NIX-71). * findRoots: skip all roots that are unreadable - the warnings with which we spam the user should be enough.
Diffstat (limited to 'src/libstore/store-api.hh')
-rw-r--r-- | src/libstore/store-api.hh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh index 795488d17f2c..bda232d3d232 100644 --- a/src/libstore/store-api.hh +++ b/src/libstore/store-api.hh @@ -2,6 +2,7 @@ #define __STOREAPI_H #include <string> +#include <map> #include <boost/shared_ptr.hpp> @@ -33,6 +34,9 @@ struct Substitute typedef list<Substitute> Substitutes; +typedef std::map<Path, Path> Roots; + + class StoreAPI { public: @@ -118,6 +122,11 @@ public: In either case the permanent root is seen by the collector. */ virtual void syncWithGC() = 0; + /* Find the roots of the garbage collector. Each root is a pair + (link, storepath) where `link' is the path of the symlink + outside of the Nix store that point to `storePath'. */ + virtual Roots findRoots() = 0; + }; |