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/InputPlugin.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/InputPlugin.hxx | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/input/InputPlugin.hxx b/src/input/InputPlugin.hxx index 449604434..1bdf44b77 100644 --- a/src/input/InputPlugin.hxx +++ b/src/input/InputPlugin.hxx @@ -82,38 +82,6 @@ struct InputPlugin { InputStream *(*open)(const char *uri, Mutex &mutex, Cond &cond, Error &error); - - /** - * Check for errors that may have occurred in the I/O thread. - * May be unimplemented for synchronous plugins. - * - * @return false on error - */ - bool (*check)(InputStream *is, Error &error); - - /** - * Update the public attributes. Call before access. Can be - * nullptr if the plugin always keeps its attributes up to date. - */ - void (*update)(InputStream *is); - - Tag *(*tag)(InputStream *is); - - /** - * Returns true if the next read operation will not block: - * either data is available, or end-of-stream has been - * reached, or an error has occurred. - * - * If this method is unimplemented, then it is assumed that - * reading will never block. - */ - bool (*available)(InputStream *is); - - size_t (*read)(InputStream *is, void *ptr, size_t size, - Error &error); - bool (*eof)(InputStream *is); - bool (*seek)(InputStream *is, offset_type offset, int whence, - Error &error); }; #endif |