Pull out PathReferences super class

This commit is contained in:
John Ericson 2020-06-25 05:41:18 +00:00
parent d92d4f85a5
commit 1722ae6ece

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