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

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