diff options
| author | 2013-03-20 05:38:06 +0100 | |
|---|---|---|
| committer | 2013-03-20 05:38:06 +0100 | |
| commit | b2924a1549d874fb86deaad5fd2438e567c65bf4 (patch) | |
| tree | ead89f885a0492cdfc228a1c25326912e7d9b973 /src/sbservices.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/sbservices.h')
| -rw-r--r-- | src/sbservices.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/sbservices.h b/src/sbservices.h index 598b794..ba64d67 100644 --- a/src/sbservices.h +++ b/src/sbservices.h | |||
| @@ -22,22 +22,13 @@ | |||
| 22 | #ifndef __SBSERVICES_H | 22 | #ifndef __SBSERVICES_H |
| 23 | #define __SBSERVICES_H | 23 | #define __SBSERVICES_H |
| 24 | 24 | ||
| 25 | #ifdef WIN32 | ||
| 26 | #include <windows.h> | ||
| 27 | #else | ||
| 28 | #include <pthread.h> | ||
| 29 | #endif | ||
| 30 | |||
| 31 | #include "libimobiledevice/sbservices.h" | 25 | #include "libimobiledevice/sbservices.h" |
| 32 | #include "property_list_service.h" | 26 | #include "property_list_service.h" |
| 27 | #include "common/thread.h" | ||
| 33 | 28 | ||
| 34 | struct sbservices_client_private { | 29 | struct sbservices_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; | ||
| 38 | #else | ||
| 39 | pthread_mutex_t mutex; | ||
| 40 | #endif | ||
| 41 | }; | 32 | }; |
| 42 | 33 | ||
| 43 | #endif | 34 | #endif |
