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.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/decoder_api.c') diff --git a/src/decoder_api.c b/src/decoder_api.c index 7fab6678a..639278cb9 100644 --- a/src/decoder_api.c +++ b/src/decoder_api.c @@ -45,6 +45,11 @@ void decoder_initialized(struct decoder * decoder, notify_signal(&pc.notify); } +enum decoder_command decoder_get_command(mpd_unused struct decoder * decoder) +{ + return dc.command; +} + /** * All chunks are full of decoded data; wait for the player to free * one. -- cgit v1.2.3