mirror of
https://github.com/NixOS/nix
synced 2025-07-08 02:43:54 +02:00
* A function to restore from a Nix archive.
* addValue() can now import any dumpable FS object.
This commit is contained in:
parent
85effedca3
commit
5f5cab0ac7
6 changed files with 293 additions and 14 deletions
|
@ -48,7 +48,7 @@ struct DumpSink
|
|||
void dumpPath(const string & path, DumpSink & sink);
|
||||
|
||||
|
||||
struct ReadSource
|
||||
struct RestoreSource
|
||||
{
|
||||
/* The callee should store exactly *len bytes in the buffer
|
||||
pointed to by data. It should block if that much data is not
|
||||
|
@ -56,3 +56,5 @@ struct ReadSource
|
|||
available. */
|
||||
virtual void operator () (const unsigned char * data, unsigned int len) = 0;
|
||||
};
|
||||
|
||||
void restorePath(const string & path, RestoreSource & source);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue