summaryrefslogtreecommitdiffstats
path: root/src/iphone.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2009-07-24 23:51:53 +0200
committerGravatar Martin Szulecki2009-07-24 23:51:53 +0200
commit19a28b0ed18c8ca2f855e7d129ddcdb8c939a707 (patch)
treea8c3dbfd38705bbe73af53193d4c8cfa224ebee2 /src/iphone.c
parent83529098fbf4b39b2643a7c0bf39828247d11f9a (diff)
downloadlibimobiledevice-19a28b0ed18c8ca2f855e7d129ddcdb8c939a707.tar.gz
libimobiledevice-19a28b0ed18c8ca2f855e7d129ddcdb8c939a707.tar.bz2
Use iphone_device_get_uuid() not lockdown, for less overhead where possible
Diffstat (limited to 'src/iphone.c')
-rw-r--r--src/iphone.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/iphone.c b/src/iphone.c
index 0e179e7..93d7b5d 100644
--- a/src/iphone.c
+++ b/src/iphone.c
@@ -104,13 +104,13 @@ uint32_t iphone_get_device_handle(iphone_device_t device)
104 } 104 }
105} 105}
106 106
107char* iphone_get_uuid(iphone_device_t device) 107iphone_error_t iphone_device_get_uuid(iphone_device_t device, char **uuid)
108{ 108{
109 if (device) { 109 if (!device)
110 return device->serial_number; 110 return IPHONE_E_INVALID_ARG;
111 } else { 111
112 return NULL; 112 *uuid = strdup(device->serial_number);
113 } 113 return IPHONE_E_SUCCESS;
114} 114}
115 115
116/** Cleans up an iPhone structure, then frees the structure itself. 116/** Cleans up an iPhone structure, then frees the structure itself.