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-20T14·11+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-06-20T14·11+0000
commit85effedca3e4cc3c10ccd835c9ea4fb712418cb9 (patch)
tree52e3ed6652abb945e6c87b045b0d4777ce4770ff /src/archive.hh
parent5079ccb45537fe8de4b9579e274523734a3f634e (diff)
* Flags to indicate how values are specified on the command line
  (--hash, --file, --name).

Diffstat (limited to 'src/archive.hh')
-rw-r--r--src/archive.hh10
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;
+};