aboutsummaryrefslogtreecommitdiffstats
path: root/src/DecoderAPI.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-12-14 12:21:23 +0100
committerMax Kellermann <max@duempel.org>2013-12-14 12:40:43 +0100
commitcb336ff666a8fb2958cfb35c36ffcf613b02cd70 (patch)
tree41b2468979a5b5ed163832a88754e9f5bb85ffba /src/DecoderAPI.hxx
parente2e5433beb02eec1ddafbcdd33ce82ceeee83e0a (diff)
downloadmpd-cb336ff666a8fb2958cfb35c36ffcf613b02cd70.tar.gz
mpd-cb336ff666a8fb2958cfb35c36ffcf613b02cd70.tar.xz
mpd-cb336ff666a8fb2958cfb35c36ffcf613b02cd70.zip
DecoderAPI: add function decoder_skip()
Move code from the "mad" plugin.
Diffstat (limited to 'src/DecoderAPI.hxx')
-rw-r--r--src/DecoderAPI.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/DecoderAPI.hxx b/src/DecoderAPI.hxx
index df1b5c40d..f88503fed 100644
--- a/src/DecoderAPI.hxx
+++ b/src/DecoderAPI.hxx
@@ -117,6 +117,14 @@ decoder_read(Decoder &decoder, InputStream &is,
}
/**
+ * Skip data on the #InputStream.
+ *
+ * @return true on success, false on error or command
+ */
+bool
+decoder_skip(Decoder *decoder, InputStream &is, size_t size);
+
+/**
* Sets the time stamp for the next data chunk [seconds]. The MPD
* core automatically counts it up, and a decoder plugin only needs to
* use this function if it thinks that adding to the time stamp based