aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/store-api.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/store-api.hh')
-rw-r--r--src/libstore/store-api.hh9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh
index 795488d17..bda232d3d 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;
+
};