mirror of
https://github.com/NixOS/nix
synced 2025-06-29 19:03:16 +02:00
ParseSink
-> FileSystemObjectSink
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
This commit is contained in:
parent
5f72a97092
commit
966d6fcd01
14 changed files with 27 additions and 27 deletions
|
@ -54,7 +54,7 @@ static std::string getString(Source & source, int n)
|
|||
|
||||
|
||||
void parse(
|
||||
ParseSink & sink,
|
||||
FileSystemObjectSink & sink,
|
||||
const Path & sinkPath,
|
||||
Source & source,
|
||||
std::function<SinkHook> hook,
|
||||
|
@ -133,7 +133,7 @@ std::optional<Mode> convertMode(SourceAccessor::Type type)
|
|||
}
|
||||
|
||||
|
||||
void restore(ParseSink & sink, Source & source, std::function<RestoreHook> hook)
|
||||
void restore(FileSystemObjectSink & sink, Source & source, std::function<RestoreHook> hook)
|
||||
{
|
||||
parse(sink, "", source, [&](Path name, TreeEntry entry) {
|
||||
auto [accessor, from] = hook(entry.hash);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue