about summary refs log tree commit diff
path: root/src/libstore/store.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2004-08-31T16·13+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2004-08-31T16·13+0000
commit5c443b65501903f636b00b908bb8eb10e022402e (patch)
tree6eda7c08e475b9a4024e167b18531726d3177299 /src/libstore/store.hh
parentc25f2883b149bf71931f963d29241fe012360633 (diff)
* Main the `substitutes-rev' table again, but now in a way that
  doesn't take \Theta(n^2) space/time complexity.

Diffstat (limited to 'src/libstore/store.hh')
-rw-r--r--src/libstore/store.hh5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstore/store.hh b/src/libstore/store.hh
index 68f7d6190596..10d2890b8f0d 100644
--- a/src/libstore/store.hh
+++ b/src/libstore/store.hh
@@ -66,8 +66,9 @@ bool querySuccessor(const Path & srcPath, Path & sucPath);
 Paths queryPredecessors(const Path & sucPath);
 
 /* Register a substitute. */
-void registerSubstitute(const Transaction & txn,
-    const Path & srcPath, const Substitute & sub);
+typedef list<pair<Path, Substitute> > SubstitutePairs;
+void registerSubstitutes(const Transaction & txn,
+    const SubstitutePairs & subPairs);
 
 /* Return the substitutes expression for the given path. */
 Substitutes querySubstitutes(const Path & srcPath);