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.
This commit is contained in:
Max Kellermann
2008-08-26 08:27:07 +02:00
parent 2e9169de9d
commit 817a68b2b2
13 changed files with 74 additions and 59 deletions

View File

@@ -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.