diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/afc.c | 7 | ||||
| -rw-r--r-- | src/house_arrest.c | 4 | ||||
| -rw-r--r-- | src/installation_proxy.c | 6 | ||||
| -rw-r--r-- | src/lockdown-cu.c | 4 | ||||
| -rw-r--r-- | src/lockdown.c | 4 | ||||
| -rw-r--r-- | src/misagent.c | 6 | ||||
| -rw-r--r-- | src/mobile_image_mounter.c | 4 | ||||
| -rw-r--r-- | src/notification_proxy.c | 6 | ||||
| -rw-r--r-- | src/sbservices.c | 4 |
9 files changed, 40 insertions, 5 deletions
| @@ -26,9 +26,12 @@ | |||
| 26 | #endif | 26 | #endif |
| 27 | #include <stdio.h> | 27 | #include <stdio.h> |
| 28 | #include <stdlib.h> | 28 | #include <stdlib.h> |
| 29 | #include <unistd.h> | ||
| 30 | #include <string.h> | 29 | #include <string.h> |
| 31 | 30 | ||
| 31 | #ifndef _MSC_VER | ||
| 32 | #include <unistd.h> | ||
| 33 | #endif | ||
| 34 | |||
| 32 | #include "idevice.h" | 35 | #include "idevice.h" |
| 33 | #include "afc.h" | 36 | #include "afc.h" |
| 34 | #include "common/debug.h" | 37 | #include "common/debug.h" |
| @@ -115,7 +118,7 @@ afc_error_t afc_client_new(idevice_t device, lockdownd_service_descriptor_t serv | |||
| 115 | 118 | ||
| 116 | afc_error_t afc_client_start_service(idevice_t device, afc_client_t * client, const char* label) | 119 | afc_error_t afc_client_start_service(idevice_t device, afc_client_t * client, const char* label) |
| 117 | { | 120 | { |
| 118 | afc_error_t err = AFC_E_UNKNOWN_ERROR; | 121 | int32_t err = AFC_E_UNKNOWN_ERROR; |
| 119 | service_client_factory_start_service(device, AFC_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(afc_client_new), &err); | 122 | service_client_factory_start_service(device, AFC_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(afc_client_new), &err); |
| 120 | return err; | 123 | return err; |
| 121 | } | 124 | } |
diff --git a/src/house_arrest.c b/src/house_arrest.c index caad731..06068c6 100644 --- a/src/house_arrest.c +++ b/src/house_arrest.c | |||
| @@ -24,7 +24,11 @@ | |||
| 24 | #endif | 24 | #endif |
| 25 | #include <string.h> | 25 | #include <string.h> |
| 26 | #include <stdlib.h> | 26 | #include <stdlib.h> |
| 27 | |||
| 28 | #ifndef _MSC_VER | ||
| 27 | #include <unistd.h> | 29 | #include <unistd.h> |
| 30 | #endif | ||
| 31 | |||
| 28 | #include <plist/plist.h> | 32 | #include <plist/plist.h> |
| 29 | 33 | ||
| 30 | #include "house_arrest.h" | 34 | #include "house_arrest.h" |
diff --git a/src/installation_proxy.c b/src/installation_proxy.c index ec19da0..bb6ef01 100644 --- a/src/installation_proxy.c +++ b/src/installation_proxy.c | |||
| @@ -26,7 +26,11 @@ | |||
| 26 | #include <string.h> | 26 | #include <string.h> |
| 27 | #include <stdlib.h> | 27 | #include <stdlib.h> |
| 28 | #include <inttypes.h> | 28 | #include <inttypes.h> |
| 29 | |||
| 30 | #ifndef _MSC_VER | ||
| 29 | #include <unistd.h> | 31 | #include <unistd.h> |
| 32 | #endif | ||
| 33 | |||
| 30 | #include <plist/plist.h> | 34 | #include <plist/plist.h> |
| 31 | 35 | ||
| 32 | #include "installation_proxy.h" | 36 | #include "installation_proxy.h" |
| @@ -251,7 +255,7 @@ instproxy_error_t instproxy_client_new(idevice_t device, lockdownd_service_descr | |||
| 251 | 255 | ||
| 252 | instproxy_error_t instproxy_client_start_service(idevice_t device, instproxy_client_t * client, const char* label) | 256 | instproxy_error_t instproxy_client_start_service(idevice_t device, instproxy_client_t * client, const char* label) |
| 253 | { | 257 | { |
| 254 | instproxy_error_t err = INSTPROXY_E_UNKNOWN_ERROR; | 258 | int32_t err = INSTPROXY_E_UNKNOWN_ERROR; |
| 255 | service_client_factory_start_service(device, INSTPROXY_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(instproxy_client_new), &err); | 259 | service_client_factory_start_service(device, INSTPROXY_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(instproxy_client_new), &err); |
| 256 | return err; | 260 | return err; |
| 257 | } | 261 | } |
diff --git a/src/lockdown-cu.c b/src/lockdown-cu.c index e0af5e2..9fbd2c8 100644 --- a/src/lockdown-cu.c +++ b/src/lockdown-cu.c | |||
| @@ -29,7 +29,11 @@ | |||
| 29 | #define __USE_GNU 1 | 29 | #define __USE_GNU 1 |
| 30 | #include <stdio.h> | 30 | #include <stdio.h> |
| 31 | #include <ctype.h> | 31 | #include <ctype.h> |
| 32 | |||
| 33 | #ifndef _MSC_VER | ||
| 32 | #include <unistd.h> | 34 | #include <unistd.h> |
| 35 | #endif | ||
| 36 | |||
| 33 | #include <plist/plist.h> | 37 | #include <plist/plist.h> |
| 34 | 38 | ||
| 35 | #include "idevice.h" | 39 | #include "idevice.h" |
diff --git a/src/lockdown.c b/src/lockdown.c index be55934..3679fee 100644 --- a/src/lockdown.c +++ b/src/lockdown.c | |||
| @@ -32,7 +32,11 @@ | |||
| 32 | #define __USE_GNU 1 | 32 | #define __USE_GNU 1 |
| 33 | #include <stdio.h> | 33 | #include <stdio.h> |
| 34 | #include <ctype.h> | 34 | #include <ctype.h> |
| 35 | |||
| 36 | #ifndef _MSC_VER | ||
| 35 | #include <unistd.h> | 37 | #include <unistd.h> |
| 38 | #endif | ||
| 39 | |||
| 36 | #include <plist/plist.h> | 40 | #include <plist/plist.h> |
| 37 | #include <libimobiledevice-glue/utils.h> | 41 | #include <libimobiledevice-glue/utils.h> |
| 38 | 42 | ||
diff --git a/src/misagent.c b/src/misagent.c index e3da997..3fdca4d 100644 --- a/src/misagent.c +++ b/src/misagent.c | |||
| @@ -24,9 +24,13 @@ | |||
| 24 | #endif | 24 | #endif |
| 25 | #include <string.h> | 25 | #include <string.h> |
| 26 | #include <stdlib.h> | 26 | #include <stdlib.h> |
| 27 | #include <stdio.h> | ||
| 28 | |||
| 29 | #ifndef _MSC_VER | ||
| 27 | #include <unistd.h> | 30 | #include <unistd.h> |
| 31 | #endif | ||
| 32 | |||
| 28 | #include <plist/plist.h> | 33 | #include <plist/plist.h> |
| 29 | #include <stdio.h> | ||
| 30 | 34 | ||
| 31 | #include "misagent.h" | 35 | #include "misagent.h" |
| 32 | #include "property_list_service.h" | 36 | #include "property_list_service.h" |
diff --git a/src/mobile_image_mounter.c b/src/mobile_image_mounter.c index 6df50c4..6677882 100644 --- a/src/mobile_image_mounter.c +++ b/src/mobile_image_mounter.c | |||
| @@ -24,7 +24,11 @@ | |||
| 24 | #endif | 24 | #endif |
| 25 | #include <string.h> | 25 | #include <string.h> |
| 26 | #include <stdlib.h> | 26 | #include <stdlib.h> |
| 27 | |||
| 28 | #ifndef _MSC_VER | ||
| 27 | #include <unistd.h> | 29 | #include <unistd.h> |
| 30 | #endif | ||
| 31 | |||
| 28 | #include <plist/plist.h> | 32 | #include <plist/plist.h> |
| 29 | 33 | ||
| 30 | #include "mobile_image_mounter.h" | 34 | #include "mobile_image_mounter.h" |
diff --git a/src/notification_proxy.c b/src/notification_proxy.c index 9d983ba..c7e4660 100644 --- a/src/notification_proxy.c +++ b/src/notification_proxy.c | |||
| @@ -24,7 +24,11 @@ | |||
| 24 | #endif | 24 | #endif |
| 25 | #include <string.h> | 25 | #include <string.h> |
| 26 | #include <stdlib.h> | 26 | #include <stdlib.h> |
| 27 | |||
| 28 | #ifndef _MSC_VER | ||
| 27 | #include <unistd.h> | 29 | #include <unistd.h> |
| 30 | #endif | ||
| 31 | |||
| 28 | #include <plist/plist.h> | 32 | #include <plist/plist.h> |
| 29 | 33 | ||
| 30 | #include "notification_proxy.h" | 34 | #include "notification_proxy.h" |
| @@ -110,7 +114,7 @@ np_error_t np_client_new(idevice_t device, lockdownd_service_descriptor_t servic | |||
| 110 | 114 | ||
| 111 | np_error_t np_client_start_service(idevice_t device, np_client_t* client, const char* label) | 115 | np_error_t np_client_start_service(idevice_t device, np_client_t* client, const char* label) |
| 112 | { | 116 | { |
| 113 | np_error_t err = NP_E_UNKNOWN_ERROR; | 117 | int32_t err = NP_E_UNKNOWN_ERROR; |
| 114 | service_client_factory_start_service(device, NP_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(np_client_new), &err); | 118 | service_client_factory_start_service(device, NP_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(np_client_new), &err); |
| 115 | return err; | 119 | return err; |
| 116 | } | 120 | } |
diff --git a/src/sbservices.c b/src/sbservices.c index 365e130..5df5122 100644 --- a/src/sbservices.c +++ b/src/sbservices.c | |||
| @@ -24,7 +24,11 @@ | |||
| 24 | #endif | 24 | #endif |
| 25 | #include <string.h> | 25 | #include <string.h> |
| 26 | #include <stdlib.h> | 26 | #include <stdlib.h> |
| 27 | |||
| 28 | #ifndef _MSC_VER | ||
| 27 | #include <unistd.h> | 29 | #include <unistd.h> |
| 30 | #endif | ||
| 31 | |||
| 28 | #include <plist/plist.h> | 32 | #include <plist/plist.h> |
| 29 | 33 | ||
| 30 | #include "sbservices.h" | 34 | #include "sbservices.h" |
