diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-08-31T16·13+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-08-31T16·13+0000 |
commit | 5c443b65501903f636b00b908bb8eb10e022402e (patch) | |
tree | 6eda7c08e475b9a4024e167b18531726d3177299 /src/libstore/store.hh | |
parent | c25f2883b149bf71931f963d29241fe012360633 (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.hh | 5 |
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); |