Pull out PathReferences super class

This commit is contained in:
John Ericson
2020-06-25 17:49:22 +00:00
parent d92d4f85a5
commit 1722ae6ece
+7 -2
View File
@@ -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