2023-03-17 16:51:08 +02:00
|
|
|
#pragma once
|
2023-10-25 07:43:36 +03:00
|
|
|
///@file
|
2023-03-17 16:51:08 +02:00
|
|
|
|
|
|
|
#include "references.hh"
|
|
|
|
#include "path.hh"
|
|
|
|
|
|
|
|
namespace nix {
|
|
|
|
|
|
|
|
std::pair<StorePathSet, HashResult> scanForReferences(const Path & path, const StorePathSet & refs);
|
|
|
|
|
|
|
|
StorePathSet scanForReferences(Sink & toTee, const Path & path, const StorePathSet & refs);
|
|
|
|
|
|
|
|
class PathRefScanSink : public RefScanSink
|
|
|
|
{
|
|
|
|
std::map<std::string, StorePath> backMap;
|
|
|
|
|
|
|
|
PathRefScanSink(StringSet && hashes, std::map<std::string, StorePath> && backMap);
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
static PathRefScanSink fromPaths(const StorePathSet & refs);
|
|
|
|
|
|
|
|
StorePathSet getResultPaths();
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|