diff options
| author | 2008-08-21 21:34:59 +0200 | |
|---|---|---|
| committer | 2008-08-21 21:34:59 +0200 | |
| commit | 6b706ced7bea4223cce3b83f25268130226a9756 (patch) | |
| tree | 3ffbeaafaa6f120ab138709df5bd0c4b998d005f /src/main.c | |
| parent | bb496ff039679ad44d2a9dbfb4224b2fcd54c7e2 (diff) | |
| download | libimobiledevice-6b706ced7bea4223cce3b83f25268130226a9756.tar.gz libimobiledevice-6b706ced7bea4223cce3b83f25268130226a9756.tar.bz2 | |
add get_device_uid function
Conflicts:
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -57,6 +57,12 @@ int main(int argc, char *argv[]) { | |||
| 57 | return -1; | 57 | return -1; |
| 58 | } | 58 | } |
| 59 | 59 | ||
| 60 | char *uid = NULL; | ||
| 61 | if (lockdownd_get_device_uid(control, &uid)) { | ||
| 62 | printf("DeviceUniqueID : %s\n", uid); | ||
| 63 | free(uid); | ||
| 64 | } | ||
| 65 | |||
| 60 | port = lockdownd_start_service(control, "com.apple.afc"); | 66 | port = lockdownd_start_service(control, "com.apple.afc"); |
| 61 | 67 | ||
| 62 | if (port) { | 68 | if (port) { |
