mirror of
https://github.com/NixOS/nix
synced 2025-06-28 17:51:15 +02:00
18 lines
359 B
C++
18 lines
359 B
C++
#include "input-accessor.hh"
|
|
#include "source-path.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();
|
|
|
|
ref<InputAccessor> makeEmptyInputAccessor();
|
|
|
|
}
|