about summary refs log tree commit diff
path: root/src/libstore/store-api.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2010-05-04T10·45+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2010-05-04T10·45+0000
commitf92c9a0ac585d30e245c6667cbce4b035659cb11 (patch)
tree4c9d10130d3ce67a4ca724170614f09a404e16aa /src/libstore/store-api.hh
parent7fa338f4bac16f83b65b95fb0397b534d5ba5d5b (diff)
* Allow unprivileged users to do `nix-store --clear-failed-paths' and
  `nix-store --query-failed-paths'.

Diffstat (limited to 'src/libstore/store-api.hh')
-rw-r--r--src/libstore/store-api.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh
index 095fdd24bb28..fbe0cce81e94 100644
--- a/src/libstore/store-api.hh
+++ b/src/libstore/store-api.hh
@@ -209,6 +209,13 @@ public:
 
     /* Perform a garbage collection. */
     virtual void collectGarbage(const GCOptions & options, GCResults & results) = 0;
+
+    /* Return the set of paths that have failed to build.*/
+    virtual PathSet queryFailedPaths() = 0;
+
+    /* Clear the "failed" status of the given paths.  The special
+       value `*' causes all failed paths to be cleared. */
+    virtual void clearFailedPaths(const PathSet & paths) = 0;
 };