diff options
author | Max Kellermann <max@duempel.org> | 2013-10-23 21:22:29 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-23 21:58:44 +0200 |
commit | f1027ed198535ce16cfb9c83ac802788ec750488 (patch) | |
tree | bc8787407538be55e8bf70d3413644a8a8f4abf4 /src/InputStream.hxx | |
parent | fe3c5e4e8e3c46d57cb49c2dd6c4c2dc814a797b (diff) | |
download | mpd-f1027ed198535ce16cfb9c83ac802788ec750488.tar.gz mpd-f1027ed198535ce16cfb9c83ac802788ec750488.tar.xz mpd-f1027ed198535ce16cfb9c83ac802788ec750488.zip |
InputStream: add method Rewind()
Diffstat (limited to 'src/InputStream.hxx')
-rw-r--r-- | src/InputStream.hxx | 7 |
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. |