From 817a68b2b27dc65fb5fc550c83117832e8048c6f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 26 Aug 2008 08:27:07 +0200 Subject: added decoder_get_command() Another big patch which hides internal mpd APIs from decoder plugins: decoder plugins regularly poll dc->command; expose it with a decoder_api.h function. --- src/decoder_api.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/decoder_api.h') diff --git a/src/decoder_api.h b/src/decoder_api.h index 6595b865b..5913a5961 100644 --- a/src/decoder_api.h +++ b/src/decoder_api.h @@ -103,6 +103,8 @@ void decoder_initialized(struct decoder * decoder, const AudioFormat * audio_format, float total_time); +enum decoder_command decoder_get_command(struct decoder * decoder); + /** * This function is called by the decoder plugin when it has * successfully decoded block of input data. -- cgit v1.2.3