17 lines
313 B
C++
17 lines
313 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();
|
|
|
|
}
|