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-15T21·11+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2005-12-15T21·11+0000
commit530b27df1e71852580d8b0d474543aeffe65618f (patch)
tree166f79c170b19ad82ca6bf9a3c77b96325b72aa1 /src/libstore/gc.hh
parent5144f750c471cdb629750e96ddc913fb01fb9eef (diff)
* `nix-store --gc' prints out the number of bytes freed on stdout
  (even when it is interrupted by a signal).

Diffstat (limited to 'src/libstore/gc.hh')
-rw-r--r--src/libstore/gc.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/gc.hh b/src/libstore/gc.hh
index b6a367c4b330..eb1858729037 100644
--- a/src/libstore/gc.hh
+++ b/src/libstore/gc.hh
@@ -19,7 +19,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);
+void collectGarbage(GCAction action, PathSet & result,
+    unsigned long long & bytesFreed);
 
 /* Register a temporary GC root.  This root will automatically
    disappear when this process exits.  WARNING: this function should