diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-06-25 05:41:18 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-06-25 17:49:22 +0000 |
commit | 1722ae6ecee54e14164d215ba3d767ea6c352fc3 (patch) | |
tree | 238d3bbb08282dc3fc9e3f15e35c0706b8ca81e9 /src/libstore/path-info.hh | |
parent | d92d4f85a5c8a2a2385c084500a8b6bd54b54e6c (diff) |
Pull out PathReferences super class
Diffstat (limited to 'src/libstore/path-info.hh')
-rw-r--r-- | src/libstore/path-info.hh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/libstore/path-info.hh b/src/libstore/path-info.hh index f5dee00a6..a980e1243 100644 --- a/src/libstore/path-info.hh +++ b/src/libstore/path-info.hh @@ -20,12 +20,17 @@ namespace nix { class Store; -struct ValidPathInfo +template<typename Ref> +struct PathReferences +{ + std::set<Ref> references; +}; + +struct ValidPathInfo : PathReferences<StorePath> { StorePath path; std::optional<StorePath> deriver; Hash narHash; - StorePathSet references; time_t registrationTime = 0; uint64_t narSize = 0; // 0 = unknown uint64_t id; // internal use only |