about summary refs log tree commit diff
path: root/src/libstore/gc.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2005-12-23T21·08+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2005-12-23T21·08+0000
commit4b9e7f59ca14c3de7b0cfdaebca98fa2639bbbf9 (patch)
treefa9a89816c430600b41d999f15e785e9a6ff7d3e /src/libstore/gc.hh
parent3c5619c7e496b0ce7b7bc16cbcf11668cf7a69fb (diff)
* Revived the old "nix-store --delete" operation that deletes the
  specified paths from the Nix store.  However, this operation is
  safe: it refuses to delete anything that the garbage collector
  wouldn't delete.

Diffstat (limited to 'src/libstore/gc.hh')
-rw-r--r--src/libstore/gc.hh5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstore/gc.hh b/src/libstore/gc.hh
index eb1858729037..b05d88f93088 100644
--- a/src/libstore/gc.hh
+++ b/src/libstore/gc.hh
@@ -10,6 +10,7 @@ typedef enum {
     gcReturnLive,
     gcReturnDead,
     gcDeleteDead,
+    gcDeleteSpecific,
 } GCAction;
 
 /* If `action' is set to `gcReturnRoots', find and return the set of
@@ -19,8 +20,8 @@ typedef enum {
    closure of) the roots.  If `action' is `gcReturnDead', return the
    set of paths not reachable from the roots.  If `action' is
    `gcDeleteDead', actually delete the latter set. */
-void collectGarbage(GCAction action, PathSet & result,
-    unsigned long long & bytesFreed);
+void collectGarbage(GCAction action, const PathSet & pathsToDelete,
+    PathSet & result, unsigned long long & bytesFreed);
 
 /* Register a temporary GC root.  This root will automatically
    disappear when this process exits.  WARNING: this function should