-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We will soon add a new implemenation so the one for NARs in `archive.cc` isn't the only one.
- Loading branch information
1 parent
5473e10
commit 00d8f9a
Showing
2 changed files
with
26 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#pragma once | ||
///@file | ||
|
||
#include "types.hh" | ||
#include "serialise.hh" | ||
|
||
namespace nix { | ||
|
||
/** | ||
* \todo Fix this API, it sucks. | ||
*/ | ||
struct ParseSink | ||
{ | ||
virtual void createDirectory(const Path & path) { }; | ||
|
||
virtual void createRegularFile(const Path & path) { }; | ||
virtual void closeRegularFile() { }; | ||
virtual void isExecutable() { }; | ||
virtual void preallocateContents(uint64_t size) { }; | ||
virtual void receiveContents(std::string_view data) { }; | ||
|
||
virtual void createSymlink(const Path & path, const std::string & target) { }; | ||
}; | ||
|
||
} |