summaryrefslogtreecommitdiffstats
path: root/swig/iphone.i
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2009-09-14 15:31:44 +0200
committerGravatar Martin Szulecki2009-09-14 15:31:44 +0200
commit90f2ade2c9f5e242ae05417662147f46ba6c1153 (patch)
tree2c8b05457aec3e85ae34e28b4eee2641263db655 /swig/iphone.i
parent891041b37fb23395cf1a055f64371187d5d59aef (diff)
downloadlibimobiledevice-90f2ade2c9f5e242ae05417662147f46ba6c1153.tar.gz
libimobiledevice-90f2ade2c9f5e242ae05417662147f46ba6c1153.tar.bz2
Update Python bindings to new API
Diffstat (limited to 'swig/iphone.i')
-rw-r--r--swig/iphone.i4
1 files changed, 2 insertions, 2 deletions
diff --git a/swig/iphone.i b/swig/iphone.i
index 3c208ef..ba6345a 100644
--- a/swig/iphone.i
+++ b/swig/iphone.i
@@ -121,13 +121,13 @@ MobileSync* my_new_MobileSync(Lockdownd* lckd) {
121 } 121 }
122 122
123 int init_device_by_uuid(char* uuid) { 123 int init_device_by_uuid(char* uuid) {
124 if (IPHONE_E_SUCCESS == iphone_get_device_by_uuid(&($self->dev), uuid)) 124 if (IPHONE_E_SUCCESS == iphone_device_new(&($self->dev), uuid))
125 return 1; 125 return 1;
126 return 0; 126 return 0;
127 } 127 }
128 128
129 int init_device() { 129 int init_device() {
130 if (IPHONE_E_SUCCESS == iphone_get_device(&($self->dev))) 130 if (IPHONE_E_SUCCESS == iphone_device_new(&($self->dev), NULL))
131 return 1; 131 return 1;
132 return 0; 132 return 0;
133 } 133 }