aboutsummaryrefslogtreecommitdiffstats
path: root/src/InputStream.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/InputStream.hxx')
-rw-r--r--src/InputStream.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/InputStream.hxx b/src/InputStream.hxx
index ac774f723..343f3277c 100644
--- a/src/InputStream.hxx
+++ b/src/InputStream.hxx
@@ -218,6 +218,13 @@ struct input_stream {
bool LockSeek(offset_type offset, int whence, Error &error);
/**
+ * Rewind to the beginning of the stream. This is a wrapper
+ * for Seek(0, SEEK_SET, error).
+ */
+ bool Rewind(Error &error);
+ bool LockRewind(Error &error);
+
+ /**
* Returns true if the stream has reached end-of-file.
*
* The caller must lock the mutex.