summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2008-08-21 21:34:59 +0200
committerGravatar Jonathan Beck2008-08-21 21:34:59 +0200
commit6b706ced7bea4223cce3b83f25268130226a9756 (patch)
tree3ffbeaafaa6f120ab138709df5bd0c4b998d005f /src/main.c
parentbb496ff039679ad44d2a9dbfb4224b2fcd54c7e2 (diff)
downloadlibplist-6b706ced7bea4223cce3b83f25268130226a9756.tar.gz
libplist-6b706ced7bea4223cce3b83f25268130226a9756.tar.bz2
add get_device_uid function
Conflicts:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 42600c3..78c62f7 100644
--- a/src/main.c
+++ b/src/main.c
@@ -57,6 +57,12 @@ int main(int argc, char *argv[]) {
return -1;
}
+ char *uid = NULL;
+ if (lockdownd_get_device_uid(control, &uid)) {
+ printf("DeviceUniqueID : %s\n", uid);
+ free(uid);
+ }
+
port = lockdownd_start_service(control, "com.apple.afc");
if (port) {