aboutsummaryrefslogtreecommitdiffstats
path: root/src/notify.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-10-11 20:33:17 +0200
committerMax Kellermann <max@duempel.org>2010-10-11 20:33:17 +0200
commita57f9e712d498e0911fde56e0281e01e3807becc (patch)
tree05a36d297fb46b40c6fa4eed5d2ced0dc91ce918 /src/notify.c
parente6fc88a758af2f0a37376c5c8dcf90db05e4e45a (diff)
parentb552e9a12077dc73ba7d2aaad7c79a8201efff12 (diff)
downloadmpd-a57f9e712d498e0911fde56e0281e01e3807becc.tar.gz
mpd-a57f9e712d498e0911fde56e0281e01e3807becc.tar.xz
mpd-a57f9e712d498e0911fde56e0281e01e3807becc.zip
Merge release 0.15.13 from branch 'v0.15.x'
Conflicts: NEWS configure.ac src/input/rewind_input_plugin.c src/output/httpd_output_plugin.c
Diffstat (limited to 'src/notify.c')
-rw-r--r--src/notify.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/notify.c b/src/notify.c
index dd55c45fa..d148a4bfc 100644
--- a/src/notify.c
+++ b/src/notify.c
@@ -49,3 +49,10 @@ void notify_signal(struct notify *notify)
g_cond_signal(notify->cond);
g_mutex_unlock(notify->mutex);
}
+
+void notify_clear(struct notify *notify)
+{
+ g_mutex_lock(notify->mutex);
+ notify->pending = false;
+ g_mutex_unlock(notify->mutex);
+}