notify: removed the "Notify" typedef

Typedefs shouldn't be used, use the bare struct names instead.
This commit is contained in:
Max Kellermann
2008-10-08 10:49:16 +02:00
parent d562ba5fbb
commit b159832418
7 changed files with 29 additions and 19 deletions

@@ -33,7 +33,8 @@ void dc_deinit(void)
notify_deinit(&dc.notify);
}
void dc_command_wait(Notify *notify)
void
dc_command_wait(struct notify *notify)
{
while (dc.command != DECODE_COMMAND_NONE) {
notify_signal(&dc.notify);
@@ -41,7 +42,8 @@ void dc_command_wait(Notify *notify)
}
}
static void dc_command(Notify *notify, enum decoder_command cmd)
static void
dc_command(struct notify *notify, enum decoder_command cmd)
{
dc.command = cmd;
dc_command_wait(notify);
@@ -54,7 +56,7 @@ static void dc_command_async(enum decoder_command cmd)
}
void
dc_start(Notify *notify, struct song *song)
dc_start(struct notify *notify, struct song *song)
{
assert(song != NULL);
@@ -73,14 +75,16 @@ dc_start_async(struct song *song)
dc_command_async(DECODE_COMMAND_START);
}
void dc_stop(Notify *notify)
void
dc_stop(struct notify *notify)
{
if (dc.command == DECODE_COMMAND_START ||
dc.state != DECODE_STATE_STOP)
dc_command(notify, DECODE_COMMAND_STOP);
}
int dc_seek(Notify *notify, double where)
int
dc_seek(struct notify *notify, double where)
{
assert(where >= 0.0);