aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_control.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-08 10:49:16 +0200
committerMax Kellermann <max@duempel.org>2008-10-08 10:49:16 +0200
commitb159832418dd6ac92229686e1ac6b23f0fe609cb (patch)
treecee4cb0d8d63492e5db470826cc396ba00cfe5cf /src/decoder_control.c
parentd562ba5fbbe117585eaade40a8e9c6ef1bf7ca1f (diff)
downloadmpd-b159832418dd6ac92229686e1ac6b23f0fe609cb.tar.gz
mpd-b159832418dd6ac92229686e1ac6b23f0fe609cb.tar.xz
mpd-b159832418dd6ac92229686e1ac6b23f0fe609cb.zip
notify: removed the "Notify" typedef
Typedefs shouldn't be used, use the bare struct names instead.
Diffstat (limited to '')
-rw-r--r--src/decoder_control.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/decoder_control.c b/src/decoder_control.c
index 3c83e7371..82c8672c8 100644
--- a/src/decoder_control.c
+++ b/src/decoder_control.c
@@ -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);