diff options
author | Max Kellermann <max@duempel.org> | 2014-05-11 17:14:49 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-05-11 17:14:49 +0200 |
commit | d4b625b48e6bbac61b4128aeeaf44911b2e3e03b (patch) | |
tree | 67389c99a559c1b65bf6465c2361a4e3c01d4287 /src/input/InputStream.hxx | |
parent | 82337dec44347017ca04fe975e85e6d9e4edb635 (diff) | |
download | mpd-d4b625b48e6bbac61b4128aeeaf44911b2e3e03b.tar.gz mpd-d4b625b48e6bbac61b4128aeeaf44911b2e3e03b.tar.xz mpd-d4b625b48e6bbac61b4128aeeaf44911b2e3e03b.zip |
InputStream: make various methods abstract
Replace InputPlugin attributes.
Diffstat (limited to '')
-rw-r--r-- | src/input/InputStream.hxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/input/InputStream.hxx b/src/input/InputStream.hxx index 4a9d7832a..b1f8c0d8c 100644 --- a/src/input/InputStream.hxx +++ b/src/input/InputStream.hxx @@ -166,13 +166,13 @@ public: * * @return false on error */ - bool Check(Error &error); + virtual bool Check(Error &error); /** * Update the public attributes. Call before accessing attributes * such as "ready" or "offset". */ - void Update(); + virtual void Update(); void SetReady(); @@ -272,7 +272,7 @@ public: * @param offset the relative offset * @param whence the base of the seek, one of SEEK_SET, SEEK_CUR, SEEK_END */ - bool Seek(offset_type offset, int whence, Error &error); + virtual bool Seek(offset_type offset, int whence, Error &error); /** * Wrapper for Seek() which locks and unlocks the mutex; the @@ -293,7 +293,7 @@ public: * The caller must lock the mutex. */ gcc_pure - bool IsEOF(); + virtual bool IsEOF() = 0; /** * Wrapper for IsEOF() which locks and unlocks the mutex; the @@ -311,7 +311,7 @@ public: * nullptr if the tag has not changed since the last call */ gcc_malloc - Tag *ReadTag(); + virtual Tag *ReadTag(); /** * Wrapper for ReadTag() which locks and unlocks the mutex; @@ -328,7 +328,7 @@ public: * The caller must lock the mutex. */ gcc_pure - bool IsAvailable(); + virtual bool IsAvailable(); /** * Reads data from the stream into the caller-supplied buffer. @@ -342,7 +342,7 @@ public: * @return the number of bytes read */ gcc_nonnull_all - size_t Read(void *ptr, size_t size, Error &error); + virtual size_t Read(void *ptr, size_t size, Error &error) = 0; /** * Wrapper for Read() which locks and unlocks the mutex; |