aboutsummaryrefslogtreecommitdiffstats
path: root/src/InputStream.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/InputStream.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/InputStream.cxx b/src/InputStream.cxx
index 52eef2caf..56ca57e55 100644
--- a/src/InputStream.cxx
+++ b/src/InputStream.cxx
@@ -27,6 +27,7 @@
#include "util/Domain.hxx"
#include <assert.h>
+#include <stdio.h> /* for SEEK_SET */
static constexpr Domain input_domain("input");
@@ -113,6 +114,18 @@ input_stream::LockSeek(offset_type _offset, int whence, Error &error)
return Seek(_offset, whence, error);
}
+bool
+input_stream::Rewind(Error &error)
+{
+ return Seek(0, SEEK_SET, error);
+}
+
+bool
+input_stream::LockRewind(Error &error)
+{
+ return LockSeek(0, SEEK_SET, error);
+}
+
Tag *
input_stream::ReadTag()
{