moved code to pc_init(), dc_init()

This commit is contained in:
Max Kellermann
2008-08-26 08:45:14 +02:00
parent 5e51fa020d
commit e2c8b960de
8 changed files with 37 additions and 24 deletions

@@ -20,6 +20,14 @@
struct decoder_control dc;
void dc_init(void)
{
notify_init(&dc.notify);
dc.state = DECODE_STATE_STOP;
dc.command = DECODE_COMMAND_NONE;
dc.error = DECODE_ERROR_NOERROR;
}
void dc_command_wait(Notify *notify)
{
while (dc.command != DECODE_COMMAND_NONE) {