#pragma once #include "references.hh" #include "path.hh" namespace nix { std::pair scanForReferences(const Path & path, const StorePathSet & refs); StorePathSet scanForReferences(Sink & toTee, const Path & path, const StorePathSet & refs); class PathRefScanSink : public RefScanSink { std::map backMap; PathRefScanSink(StringSet && hashes, std::map && backMap); public: static PathRefScanSink fromPaths(const StorePathSet & refs); StorePathSet getResultPaths(); }; }