aboutsummaryrefslogtreecommitdiffstats
path: root/src/notify.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-24 07:05:43 +0200
committerMax Kellermann <max@duempel.org>2008-09-24 07:05:43 +0200
commit770b1405345710994b4d7fda55e26cad195c2742 (patch)
tree7a762b785cc6279a285e025bdf23effd22fbb1dc /src/notify.c
parent35216db8dbfb9865b0e2ec60495bf72fa235c79d (diff)
downloadmpd-770b1405345710994b4d7fda55e26cad195c2742.tar.gz
mpd-770b1405345710994b4d7fda55e26cad195c2742.tar.xz
mpd-770b1405345710994b4d7fda55e26cad195c2742.zip
notify: declare "struct notify"
"struct notify" is the same as the "Notify" typedef. It can be forward-declared and has a lower case name.
Diffstat (limited to '')
-rw-r--r--src/notify.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/notify.c b/src/notify.c
index ed46829ae..9a3ac500a 100644
--- a/src/notify.c
+++ b/src/notify.c
@@ -18,7 +18,7 @@
#include "notify.h"
-int notify_init(Notify *notify)
+int notify_init(struct notify *notify)
{
int ret;
@@ -37,30 +37,30 @@ int notify_init(Notify *notify)
return 0;
}
-void notify_enter(Notify *notify)
+void notify_enter(struct notify *notify)
{
pthread_mutex_lock(&notify->mutex);
}
-void notify_leave(Notify *notify)
+void notify_leave(struct notify *notify)
{
pthread_mutex_unlock(&notify->mutex);
}
-void notify_wait(Notify *notify)
+void notify_wait(struct notify *notify)
{
if (!notify->pending)
pthread_cond_wait(&notify->cond, &notify->mutex);
notify->pending = 0;
}
-void notify_signal(Notify *notify)
+void notify_signal(struct notify *notify)
{
notify->pending = 1;
pthread_cond_signal(&notify->cond);
}
-void notify_signal_sync(Notify *notify)
+void notify_signal_sync(struct notify *notify)
{
pthread_mutex_lock(&notify->mutex);
notify_signal(notify);