diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2023-01-14 17:09:58 -0500 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2023-01-14 17:09:58 -0500 |
commit | 7c822138134af3771dc017c7399507af4a25004f (patch) | |
tree | 167a6e9625177a63b4ea67db70de6d7dddcf9a79 /src/libstore/content-address.hh | |
parent | 81727f85cb567c4d5282c330d63a74ed84d12783 (diff) | |
parent | b3d91239ae9f21a60057b278ceeff663fb786246 (diff) |
Merge branch 'path-info' into ca-drv-exotic
Diffstat (limited to 'src/libstore/content-address.hh')
-rw-r--r-- | src/libstore/content-address.hh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/libstore/content-address.hh b/src/libstore/content-address.hh index c07fe0a88..a251aeb01 100644 --- a/src/libstore/content-address.hh +++ b/src/libstore/content-address.hh @@ -4,7 +4,6 @@ #include "hash.hh" #include "path.hh" #include "comparator.hh" -#include "reference-set.hh" namespace nix { @@ -102,7 +101,15 @@ Hash getContentAddressHash(const ContentAddress & ca); * References set */ -typedef References<StorePath> StoreReferences; +struct StoreReferences { + StorePathSet others; + bool self = false; + + bool empty() const; + size_t size() const; + + GENERATE_CMP(StoreReferences, me->self, me->others); +}; /* * Full content address |