diff options
| author | 2011-09-03 02:07:09 +0200 | |
|---|---|---|
| committer | 2012-03-18 20:40:54 +0100 | |
| commit | 6a83ef58a1032e3b336587e2f3a19659ae325c25 (patch) | |
| tree | 27e12297bc66bd22a0cfc86459413a49a0d998f2 /src/notification_proxy.h | |
| parent | b586203dbef26f9e94325b57867478eda504e5a1 (diff) | |
| download | libimobiledevice-6a83ef58a1032e3b336587e2f3a19659ae325c25.tar.gz libimobiledevice-6a83ef58a1032e3b336587e2f3a19659ae325c25.tar.bz2 | |
Remove gthread dependency and use pthreads instead
Diffstat (limited to 'src/notification_proxy.h')
| -rw-r--r-- | src/notification_proxy.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/notification_proxy.h b/src/notification_proxy.h index 8d5cd24..4a9cdad 100644 --- a/src/notification_proxy.h +++ b/src/notification_proxy.h | |||
| @@ -21,17 +21,17 @@ | |||
| 21 | #ifndef INOTIFICATION_PROXY_H | 21 | #ifndef INOTIFICATION_PROXY_H |
| 22 | #define INOTIFICATION_PROXY_H | 22 | #define INOTIFICATION_PROXY_H |
| 23 | 23 | ||
| 24 | #include <glib.h> | 24 | #include <pthread.h> |
| 25 | 25 | ||
| 26 | #include "libimobiledevice/notification_proxy.h" | 26 | #include "libimobiledevice/notification_proxy.h" |
| 27 | #include "property_list_service.h" | 27 | #include "property_list_service.h" |
| 28 | 28 | ||
| 29 | struct np_client_private { | 29 | struct np_client_private { |
| 30 | property_list_service_client_t parent; | 30 | property_list_service_client_t parent; |
| 31 | GMutex *mutex; | 31 | pthread_mutex_t mutex; |
| 32 | GThread *notifier; | 32 | pthread_t notifier; |
| 33 | }; | 33 | }; |
| 34 | 34 | ||
| 35 | gpointer np_notifier(gpointer arg); | 35 | void* np_notifier(void* arg); |
| 36 | 36 | ||
| 37 | #endif | 37 | #endif |
