1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 06:21:14 +02:00

Expose RestoreSink in header (fs-sink.hh)

Co-Authored-By: Matthew Bauer <mjbauer95@gmail.com>
Co-Authored-By: Carlo Nucera <carlo.nucera@protonmail.com>
This commit is contained in:
John Ericson 2023-09-07 22:49:01 -04:00
parent 8a416e819c
commit f2e201fbdb
2 changed files with 73 additions and 61 deletions

View file

@ -22,4 +22,21 @@ struct ParseSink
virtual void createSymlink(const Path & path, const std::string & target) { };
};
struct RestoreSink : ParseSink
{
Path dstPath;
AutoCloseFD fd;
void createDirectory(const Path & path) override;
void createRegularFile(const Path & path) override;
void closeRegularFile() override;
void isExecutable() override;
void preallocateContents(uint64_t size) override;
void receiveContents(std::string_view data) override;
void createSymlink(const Path & path, const std::string & target) override;
};
}