diff options
Diffstat (limited to 'dev/msyncclient.c')
| -rw-r--r-- | dev/msyncclient.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/dev/msyncclient.c b/dev/msyncclient.c index 0107240..b9e39e6 100644 --- a/dev/msyncclient.c +++ b/dev/msyncclient.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * msyncclient.c | 2 | * msyncclient.c |
| 3 | * Rudimentary interface to the MobileSync iPhone | 3 | * Rudimentary interface to the MobileSync service. |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2009 Jonathan Beck All Rights Reserved. | 5 | * Copyright (c) 2009 Jonathan Beck All Rights Reserved. |
| 6 | * | 6 | * |
| @@ -23,9 +23,9 @@ | |||
| 23 | #include <string.h> | 23 | #include <string.h> |
| 24 | #include <errno.h> | 24 | #include <errno.h> |
| 25 | 25 | ||
| 26 | #include <libiphone/libiphone.h> | 26 | #include <libimobiledevice/libimobiledevice.h> |
| 27 | #include <libiphone/lockdown.h> | 27 | #include <libimobiledevice/lockdown.h> |
| 28 | #include <libiphone/mobilesync.h> | 28 | #include <libimobiledevice/mobilesync.h> |
| 29 | 29 | ||
| 30 | static char check_string(plist_t node, char* string) | 30 | static char check_string(plist_t node, char* string) |
| 31 | { | 31 | { |
| @@ -143,18 +143,18 @@ int main(int argc, char *argv[]) | |||
| 143 | { | 143 | { |
| 144 | uint16_t port = 0; | 144 | uint16_t port = 0; |
| 145 | lockdownd_client_t client = NULL; | 145 | lockdownd_client_t client = NULL; |
| 146 | iphone_device_t phone = NULL; | 146 | idevice_t phone = NULL; |
| 147 | 147 | ||
| 148 | if (argc > 1 && !strcasecmp(argv[1], "--debug")) | 148 | if (argc > 1 && !strcasecmp(argv[1], "--debug")) |
| 149 | iphone_set_debug_level(1); | 149 | idevice_set_debug_level(1); |
| 150 | 150 | ||
| 151 | if (IPHONE_E_SUCCESS != iphone_device_new(&phone, NULL)) { | 151 | if (IDEVICE_E_SUCCESS != idevice_new(&phone, NULL)) { |
| 152 | printf("No iPhone found, is it plugged in?\n"); | 152 | printf("No device found, is it plugged in?\n"); |
| 153 | return -1; | 153 | return -1; |
| 154 | } | 154 | } |
| 155 | 155 | ||
| 156 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "msyncclient")) { | 156 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "msyncclient")) { |
| 157 | iphone_device_free(phone); | 157 | idevice_free(phone); |
| 158 | return -1; | 158 | return -1; |
| 159 | } | 159 | } |
| 160 | 160 | ||
| @@ -174,7 +174,7 @@ int main(int argc, char *argv[]) | |||
| 174 | printf("All done.\n"); | 174 | printf("All done.\n"); |
| 175 | 175 | ||
| 176 | lockdownd_client_free(client); | 176 | lockdownd_client_free(client); |
| 177 | iphone_device_free(phone); | 177 | idevice_free(phone); |
| 178 | 178 | ||
| 179 | return 0; | 179 | return 0; |
| 180 | } | 180 | } |
