summaryrefslogtreecommitdiffstats
path: root/swig
diff options
context:
space:
mode:
authorGravatar Matt Colyer2009-05-23 16:56:36 -0700
committerGravatar Matt Colyer2009-05-23 16:56:36 -0700
commit7272875df87f1feb2c16259880503812f6acbbf1 (patch)
tree347bbff72e8a2024cb2d61c226e288afca613cd5 /swig
parent435f5feb4b5c501db52743a170908687d3ba6f60 (diff)
downloadlibimobiledevice-7272875df87f1feb2c16259880503812f6acbbf1.tar.gz
libimobiledevice-7272875df87f1feb2c16259880503812f6acbbf1.tar.bz2
Add a method to support fetching the UUID of the phone.
Diffstat (limited to 'swig')
-rw-r--r--swig/iphone.i8
1 files changed, 3 insertions, 5 deletions
diff --git a/swig/iphone.i b/swig/iphone.i
index 4e604e0..7a003d4 100644
--- a/swig/iphone.i
+++ b/swig/iphone.i
@@ -121,11 +121,9 @@ MobileSync* my_new_MobileSync(Lockdownd* lckd) {
return 0;
}
- int init_specific_device(int busnumber, int devicenumber) {
- if (IPHONE_E_SUCCESS == iphone_get_specific_device ( busnumber, devicenumber, &($self->dev)))
- return 1;
- return 0;
- }
+ char* serial_number(){
+ return iphone_get_uuid($self->dev);
+ }
Lockdownd* get_lockdown_client() {
return my_new_Lockdownd($self);