diff options
| author | 2013-03-20 05:38:06 +0100 | |
|---|---|---|
| committer | 2013-03-20 05:38:06 +0100 | |
| commit | b2924a1549d874fb86deaad5fd2438e567c65bf4 (patch) | |
| tree | ead89f885a0492cdfc228a1c25326912e7d9b973 /src/installation_proxy.h | |
| parent | efca491e4c19868a68a099638552f9ba431dca4b (diff) | |
| download | libimobiledevice-b2924a1549d874fb86deaad5fd2438e567c65bf4.tar.gz libimobiledevice-b2924a1549d874fb86deaad5fd2438e567c65bf4.tar.bz2 | |
use new internal common code for thread, mutex, and socket operations
Diffstat (limited to 'src/installation_proxy.h')
| -rw-r--r-- | src/installation_proxy.h | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/installation_proxy.h b/src/installation_proxy.h index 40175a0..4f79c12 100644 --- a/src/installation_proxy.h +++ b/src/installation_proxy.h | |||
| @@ -22,24 +22,14 @@ | |||
| 22 | #ifndef __INSTALLATION_PROXY_H | 22 | #ifndef __INSTALLATION_PROXY_H |
| 23 | #define __INSTALLATION_PROXY_H | 23 | #define __INSTALLATION_PROXY_H |
| 24 | 24 | ||
| 25 | #ifdef WIN32 | ||
| 26 | #include <windows.h> | ||
| 27 | #else | ||
| 28 | #include <pthread.h> | ||
| 29 | #endif | ||
| 30 | |||
| 31 | #include "libimobiledevice/installation_proxy.h" | 25 | #include "libimobiledevice/installation_proxy.h" |
| 32 | #include "property_list_service.h" | 26 | #include "property_list_service.h" |
| 27 | #include "common/thread.h" | ||
| 33 | 28 | ||
| 34 | struct instproxy_client_private { | 29 | struct instproxy_client_private { |
| 35 | property_list_service_client_t parent; | 30 | property_list_service_client_t parent; |
| 36 | #ifdef WIN32 | 31 | mutex_t mutex; |
| 37 | CRITICAL_SECTION mutex; | 32 | thread_t status_updater; |
| 38 | HANDLE status_updater; | ||
| 39 | #else | ||
| 40 | pthread_mutex_t mutex; | ||
| 41 | pthread_t status_updater; | ||
| 42 | #endif | ||
| 43 | }; | 33 | }; |
| 44 | 34 | ||
| 45 | #endif | 35 | #endif |
