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>2014-07-09 19:03:31 +0200
commitbf7417981f2527348fb261f40f4de15f9b350db5 (patch)
treefc9f5ef2ade165e14189b7218b82637b123080bb /src/DecoderAPI.hxx
parentdba41e2e4afd9cf342a6274cd8103dc45b5b883e (diff)
downloadmpd-bf7417981f2527348fb261f40f4de15f9b350db5.tar.gz
mpd-bf7417981f2527348fb261f40f4de15f9b350db5.tar.xz
mpd-bf7417981f2527348fb261f40f4de15f9b350db5.zip
DecoderAPI: add function decoder_skip()
Move code from the "mad" plugin.
Diffstat (limited to '')
-rw-r--r--src/DecoderAPI.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/DecoderAPI.hxx b/src/DecoderAPI.hxx
index 2ee42483c..50cd3e74a 100644
--- a/src/DecoderAPI.hxx
+++ b/src/DecoderAPI.hxx
@@ -113,6 +113,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