diff options
Diffstat (limited to 'src/archive.hh')
-rw-r--r-- | src/archive.hh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/archive.hh b/src/archive.hh index bfd96b45c03e..d351c6bf63f4 100644 --- a/src/archive.hh +++ b/src/archive.hh @@ -46,3 +46,13 @@ struct DumpSink }; void dumpPath(const string & path, DumpSink & sink); + + +struct ReadSource +{ + /* The callee should store exactly *len bytes in the buffer + pointed to by data. It should block if that much data is not + yet available, or throw an error if it is not going to be + available. */ + virtual void operator () (const unsigned char * data, unsigned int len) = 0; +}; |