about summary refs log tree commit diff
path: root/src/archive.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-06-23T13·27+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-06-23T13·27+0000
commit5f5cab0ac7c26783a4544feb31708d4f8e0f4a51 (patch)
tree1ac6bf79f849f385ed38b75377fab010880b8d70 /src/archive.hh
parent85effedca3e4cc3c10ccd835c9ea4fb712418cb9 (diff)
* A function to restore from a Nix archive.
* addValue() can now import any dumpable FS object.

Diffstat (limited to 'src/archive.hh')
-rw-r--r--src/archive.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/archive.hh b/src/archive.hh
index d351c6bf63f4..7d9b1e2b5676 100644
--- a/src/archive.hh
+++ b/src/archive.hh
@@ -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);