about summary refs log tree commit diff
path: root/src/libstore/gc.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/gc.hh')
-rw-r--r--src/libstore/gc.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstore/gc.hh b/src/libstore/gc.hh
index 2ea851abc041..838188adeb82 100644
--- a/src/libstore/gc.hh
+++ b/src/libstore/gc.hh
@@ -3,6 +3,7 @@
 
 #include "util.hh"
 
+
 /* Garbage collector operation. */
 typedef enum { gcReturnLive, gcReturnDead, gcDeleteDead } GCAction;
 
@@ -14,4 +15,9 @@ typedef enum { gcReturnLive, gcReturnDead, gcDeleteDead } GCAction;
 void collectGarbage(const PathSet & roots, GCAction action,
     PathSet & result);
 
+/* Register a temporary GC root.  This root will automatically
+   disappear when this process exits. */
+void addTempRoot(const Path & path);
+
+
 #endif /* !__GC_H */