diff options
Diffstat (limited to 'dev/lckdclient.c')
| -rw-r--r-- | dev/lckdclient.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/dev/lckdclient.c b/dev/lckdclient.c index 7b7604e..773de9f 100644 --- a/dev/lckdclient.c +++ b/dev/lckdclient.c | |||
| @@ -26,30 +26,30 @@ | |||
| 26 | #include <readline/readline.h> | 26 | #include <readline/readline.h> |
| 27 | #include <readline/history.h> | 27 | #include <readline/history.h> |
| 28 | 28 | ||
| 29 | #include <libiphone/libiphone.h> | 29 | #include <libimobiledevice/libimobiledevice.h> |
| 30 | #include <libiphone/lockdown.h> | 30 | #include <libimobiledevice/lockdown.h> |
| 31 | 31 | ||
| 32 | int main(int argc, char *argv[]) | 32 | int main(int argc, char *argv[]) |
| 33 | { | 33 | { |
| 34 | lockdownd_client_t client = NULL; | 34 | lockdownd_client_t client = NULL; |
| 35 | iphone_device_t phone = NULL; | 35 | idevice_t phone = NULL; |
| 36 | 36 | ||
| 37 | iphone_set_debug_level(1); | 37 | idevice_set_debug_level(1); |
| 38 | 38 | ||
| 39 | if (IPHONE_E_SUCCESS != iphone_device_new(&phone, NULL)) { | 39 | if (IDEVICE_E_SUCCESS != idevice_new(&phone, NULL)) { |
| 40 | printf("No iPhone found, is it plugged in?\n"); | 40 | printf("No device found, is it plugged in?\n"); |
| 41 | return -1; | 41 | return -1; |
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | char *uuid = NULL; | 44 | char *uuid = NULL; |
| 45 | if (IPHONE_E_SUCCESS == iphone_device_get_uuid(phone, &uuid)) { | 45 | if (IDEVICE_E_SUCCESS == idevice_get_uuid(phone, &uuid)) { |
| 46 | printf("DeviceUniqueID : %s\n", uuid); | 46 | printf("DeviceUniqueID : %s\n", uuid); |
| 47 | } | 47 | } |
| 48 | if (uuid) | 48 | if (uuid) |
| 49 | free(uuid); | 49 | free(uuid); |
| 50 | 50 | ||
| 51 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "lckdclient")) { | 51 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "lckdclient")) { |
| 52 | iphone_device_free(phone); | 52 | idevice_free(phone); |
| 53 | return -1; | 53 | return -1; |
| 54 | } | 54 | } |
| 55 | 55 | ||
| @@ -109,7 +109,7 @@ int main(int argc, char *argv[]) | |||
| 109 | } | 109 | } |
| 110 | clear_history(); | 110 | clear_history(); |
| 111 | lockdownd_client_free(client); | 111 | lockdownd_client_free(client); |
| 112 | iphone_device_free(phone); | 112 | idevice_free(phone); |
| 113 | 113 | ||
| 114 | return 0; | 114 | return 0; |
| 115 | } | 115 | } |
