mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-29 00:56:15 +02:00
16 lines
287 B
C++
16 lines
287 B
C++
|
#include "input-accessor.hh"
|
||
|
|
||
|
namespace nix {
|
||
|
|
||
|
/**
|
||
|
* An input accessor for an in-memory file system.
|
||
|
*/
|
||
|
struct MemoryInputAccessor : InputAccessor
|
||
|
{
|
||
|
virtual SourcePath addFile(CanonPath path, std::string && contents) = 0;
|
||
|
};
|
||
|
|
||
|
ref<MemoryInputAccessor> makeMemoryInputAccessor();
|
||
|
|
||
|
}
|