aboutsummaryrefslogtreecommitdiffstats
path: root/src/notify.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/notify.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/notify.h b/src/notify.h
index 13b7dbe2e..cb4815357 100644
--- a/src/notify.h
+++ b/src/notify.h
@@ -19,20 +19,16 @@
#ifndef MPD_NOTIFY_H
#define MPD_NOTIFY_H
+#include <glib.h>
+
#include <stdbool.h>
-#include <pthread.h>
struct notify {
- pthread_mutex_t mutex;
- pthread_cond_t cond;
+ GMutex *mutex;
+ GCond *cond;
bool pending;
};
-#define NOTIFY_INITIALIZER { \
- .mutex = PTHREAD_MUTEX_INITIALIZER, \
- .cond = PTHREAD_COND_INITIALIZER, \
-}
-
void notify_init(struct notify *notify);
void notify_deinit(struct notify *notify);