about summary refs log tree commit diff
path: root/src/libstore/store.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2005-03-23T13·07+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2005-03-23T13·07+0000
commit3f236f01ae7e9abe58a591071698a9a9840af7c2 (patch)
treefe2226d88b57ab9362016e610365dd2719f64262 /src/libstore/store.hh
parenta04c62e0c4f0f8d3bd9cda21173a0193be9eda8a (diff)
* `nix-store --register-validity': allow a path to refer to a path
  listed later in the list of new valid paths.

Diffstat (limited to 'src/libstore/store.hh')
-rw-r--r--src/libstore/store.hh13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libstore/store.hh b/src/libstore/store.hh
index 4a37a66322aa..01a971404c5c 100644
--- a/src/libstore/store.hh
+++ b/src/libstore/store.hh
@@ -66,6 +66,19 @@ void registerValidPath(const Transaction & txn,
     const Path & path, const Hash & hash, const PathSet & references,
     const Path & deriver);
 
+struct ValidPathInfo 
+{
+    Path path;
+    Path deriver;
+    Hash hash;
+    PathSet references;
+};
+
+typedef list<ValidPathInfo> ValidPathInfos;
+
+void registerValidPaths(const Transaction & txn,
+    const ValidPathInfos & infos);
+
 /* Throw an exception if `path' is not directly in the Nix store. */
 void assertStorePath(const Path & path);