diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2023-01-06 15:36:05 -0500 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2023-01-06 15:36:05 -0500 |
commit | 46e942ff9e65755689ee72f93846d7118e1b8d45 (patch) | |
tree | 81c51237516835c37cb21407a391c905c16b5c08 /src/libstore/path-info.hh | |
parent | 9cfa78e58a92b4bf034867bc1296a200bdc3f12a (diff) |
Do big rename to clean up code
- `PathReferences` -> `References`
- `PathReferences<StorePath>` -> `StoreReference`
- `references` -> `others`
- `hasSelfReference` -> `self`
And get rid of silly subclassing
Diffstat (limited to 'src/libstore/path-info.hh')
-rw-r--r-- | src/libstore/path-info.hh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libstore/path-info.hh b/src/libstore/path-info.hh index 89886873a..9254835b7 100644 --- a/src/libstore/path-info.hh +++ b/src/libstore/path-info.hh @@ -14,20 +14,22 @@ namespace nix { class Store; -struct SubstitutablePathInfo : PathReferences<StorePath> +struct SubstitutablePathInfo { std::optional<StorePath> deriver; + StoreReferences references; uint64_t downloadSize; /* 0 = unknown or inapplicable */ uint64_t narSize; /* 0 = unknown */ }; typedef std::map<StorePath, SubstitutablePathInfo> SubstitutablePathInfos; -struct ValidPathInfo : PathReferences<StorePath> +struct ValidPathInfo { StorePath path; std::optional<StorePath> deriver; Hash narHash; + StoreReferences references; time_t registrationTime = 0; uint64_t narSize = 0; // 0 = unknown uint64_t id; // internal use only @@ -61,7 +63,6 @@ struct ValidPathInfo : PathReferences<StorePath> return path == i.path && narHash == i.narHash - && hasSelfReference == i.hasSelfReference && references == i.references; } |