diff options
Diffstat (limited to 'swig/iphone.i')
| -rw-r--r-- | swig/iphone.i | 4 |
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 | } |
