diff options
Diffstat (limited to 'src/notify.c')
-rw-r--r-- | src/notify.c | 7 |
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); +} |