summaryrefslogtreecommitdiff
path: root/src/notify.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-08-19 11:03:53 +0200
committerMax Kellermann <max@duempel.org>2010-08-19 11:03:53 +0200
commit625e4755d1c59e537dc122a540d3c21de962c3d1 (patch)
treefe379227a1888c5ffc48d0f60f747260cb397da2 /src/notify.c
parent676739c426fc4a09f2654e64e4799dfe3c88dae3 (diff)
notify: add function notify_clear()
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 9168867d6..3b45c22b4 100644
--- a/src/notify.c
+++ b/src/notify.c
@@ -48,3 +48,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);
+}