diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-08-04 23:16:18 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-08-04 23:16:18 +0000 |
commit | 36dd7920a2ec671c8610cdc4e4a8866ec90675db (patch) | |
tree | b6ceebe1369524c9c09e52b9540984fc6a208685 /src/libstore/path-info.hh | |
parent | 0e9e599b00ff3cd23541ed911aa0932f4ab2cef7 (diff) | |
parent | 5b22a2c0d443ce1156f361af2dcb142d270daa6c (diff) |
Merge remote-tracking branch 'upstream/master' into path-info
Diffstat (limited to 'src/libstore/path-info.hh')
-rw-r--r-- | src/libstore/path-info.hh | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/src/libstore/path-info.hh b/src/libstore/path-info.hh index 5ebe9e8d9..42c116377 100644 --- a/src/libstore/path-info.hh +++ b/src/libstore/path-info.hh @@ -1,17 +1,9 @@ #pragma once -// TODO many of thes eare not needed. #include "path.hh" #include "hash.hh" #include "content-address.hh" -#include "serialise.hh" -#include "crypto.hh" -#include "lru-cache.hh" -#include "sync.hh" -#include "globals.hh" -#include "config.hh" - -#include <limits> + #include <string> #include <optional> @@ -61,6 +53,16 @@ void PathReferences<Ref>::setReferencesPossiblyToSelf(const Ref & self, std::set references = refs; } + +struct SubstitutablePathInfo : PathReferences<StorePath> +{ + std::optional<StorePath> deriver; + uint64_t downloadSize; /* 0 = unknown or inapplicable */ + uint64_t narSize; /* 0 = unknown */ +}; + +typedef std::map<StorePath, SubstitutablePathInfo> SubstitutablePathInfos; + struct ValidPathInfo : PathReferences<StorePath> { StorePath path; @@ -145,13 +147,4 @@ struct ValidPathInfo : PathReferences<StorePath> typedef list<ValidPathInfo> ValidPathInfos; - -struct SubstitutablePathInfo : PathReferences<StorePath> -{ - std::optional<StorePath> deriver; - uint64_t downloadSize; /* 0 = unknown or inapplicable */ - uint64_t narSize; /* 0 = unknown */ -}; - -typedef std::map<StorePath, SubstitutablePathInfo> SubstitutablePathInfos; } |