diff options
Diffstat (limited to 'dev/main.c')
| -rw-r--r-- | dev/main.c | 14 |
1 files changed, 7 insertions, 7 deletions
| @@ -80,19 +80,19 @@ int main(int argc, char *argv[]) | |||
| 80 | return -1; | 80 | return -1; |
| 81 | } | 81 | } |
| 82 | 82 | ||
| 83 | char *uuid = NULL; | ||
| 84 | if (IPHONE_E_SUCCESS == iphone_device_get_uuid(phone, &uuid)) { | ||
| 85 | printf("DeviceUniqueID : %s\n", uuid); | ||
| 86 | } | ||
| 87 | if (uuid) | ||
| 88 | free(uuid); | ||
| 89 | |||
| 83 | if (IPHONE_E_SUCCESS != lockdownd_new_client(phone, &client)) { | 90 | if (IPHONE_E_SUCCESS != lockdownd_new_client(phone, &client)) { |
| 84 | iphone_free_device(phone); | 91 | iphone_free_device(phone); |
| 85 | printf("Exiting.\n"); | 92 | printf("Exiting.\n"); |
| 86 | return -1; | 93 | return -1; |
| 87 | } | 94 | } |
| 88 | 95 | ||
| 89 | char *uid = NULL; | ||
| 90 | if (IPHONE_E_SUCCESS == lockdownd_get_device_uid(client, &uid)) { | ||
| 91 | printf("DeviceUniqueID : %s\n", uid); | ||
| 92 | free(uid); | ||
| 93 | } | ||
| 94 | |||
| 95 | |||
| 96 | char *nnn = NULL; | 96 | char *nnn = NULL; |
| 97 | if (IPHONE_E_SUCCESS == lockdownd_get_device_name(client, &nnn)) { | 97 | if (IPHONE_E_SUCCESS == lockdownd_get_device_name(client, &nnn)) { |
| 98 | printf("DeviceName : %s\n", nnn); | 98 | printf("DeviceName : %s\n", nnn); |
