aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_api.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:27:05 +0200
committerMax Kellermann <max@duempel.org>2008-08-26 08:27:05 +0200
commit0d45870cea6836cd48e6953f4e67756b2502e22c (patch)
treeb869b8bdab13374f21347bd77a32661ddcf74b88 /src/decoder_api.h
parentea51f73285f4aca931c8c7f497838da573f89142 (diff)
downloadmpd-0d45870cea6836cd48e6953f4e67756b2502e22c.tar.gz
mpd-0d45870cea6836cd48e6953f4e67756b2502e22c.tar.xz
mpd-0d45870cea6836cd48e6953f4e67756b2502e22c.zip
added decoder_clear() and decoder_flush()
We are now beginning to remove direct structure accesses from the decoder plugins. decoder_clear() and decoder_flush() mask two very common buffer functions.
Diffstat (limited to 'src/decoder_api.h')
-rw-r--r--src/decoder_api.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/decoder_api.h b/src/decoder_api.h
index a56b7ef55..a4fd7fc97 100644
--- a/src/decoder_api.h
+++ b/src/decoder_api.h
@@ -55,4 +55,8 @@ int decoder_data(struct decoder *decoder, InputStream * inStream,
float data_time, mpd_uint16 bitRate,
ReplayGainInfo * replayGainInfo);
+void decoder_flush(struct decoder *decoder);
+
+void decoder_clear(struct decoder *decoder);
+
#endif