diff options
| author | 2009-07-25 01:02:11 +0200 | |
|---|---|---|
| committer | 2009-07-25 01:02:11 +0200 | |
| commit | e2372b2f7f8f9017c9f90a7ed4d01997fb9ba464 (patch) | |
| tree | 8e3017a96b3ca7a54f933f3c19b059300be30bab /swig/iphone.i | |
| parent | c3d9e80985ef52eebb25bb07512cabc52786c130 (diff) | |
| download | libimobiledevice-e2372b2f7f8f9017c9f90a7ed4d01997fb9ba464.tar.gz libimobiledevice-e2372b2f7f8f9017c9f90a7ed4d01997fb9ba464.tar.bz2 | |
Fix Python bindings build due to signature change of iphone_device_get_uuid()
Diffstat (limited to 'swig/iphone.i')
| -rw-r--r-- | swig/iphone.i | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/swig/iphone.i b/swig/iphone.i index 64a8727..3c208ef 100644 --- a/swig/iphone.i +++ b/swig/iphone.i | |||
| @@ -59,7 +59,7 @@ typedef struct { | |||
| 59 | 59 | ||
| 60 | void my_delete_iPhone(iPhone* dev) { | 60 | void my_delete_iPhone(iPhone* dev) { |
| 61 | if (dev) { | 61 | if (dev) { |
| 62 | iphone_free_device ( dev->dev ); | 62 | iphone_device_free(dev->dev); |
| 63 | free(dev); | 63 | free(dev); |
| 64 | } | 64 | } |
| 65 | } | 65 | } |
| @@ -69,7 +69,7 @@ Lockdownd* my_new_Lockdownd(iPhone* phone) { | |||
| 69 | Lockdownd* client = (Lockdownd*) malloc(sizeof(Lockdownd)); | 69 | Lockdownd* client = (Lockdownd*) malloc(sizeof(Lockdownd)); |
| 70 | client->dev = phone; | 70 | client->dev = phone; |
| 71 | client->client = NULL; | 71 | client->client = NULL; |
| 72 | if (IPHONE_E_SUCCESS == lockdownd_new_client ( phone->dev , &(client->client))) { | 72 | if (LOCKDOWN_E_SUCCESS == lockdownd_client_new(phone->dev , &(client->client))) { |
| 73 | return client; | 73 | return client; |
| 74 | } | 74 | } |
| 75 | else { | 75 | else { |
| @@ -80,7 +80,7 @@ Lockdownd* my_new_Lockdownd(iPhone* phone) { | |||
| 80 | 80 | ||
| 81 | void my_delete_Lockdownd(Lockdownd* lckd) { | 81 | void my_delete_Lockdownd(Lockdownd* lckd) { |
| 82 | if (lckd) { | 82 | if (lckd) { |
| 83 | lockdownd_free_client ( lckd->client ); | 83 | lockdownd_client_free(lckd->client); |
| 84 | free(lckd); | 84 | free(lckd); |
| 85 | } | 85 | } |
| 86 | } | 86 | } |
| @@ -89,11 +89,11 @@ MobileSync* my_new_MobileSync(Lockdownd* lckd) { | |||
| 89 | if (!lckd || !lckd->dev) return NULL; | 89 | if (!lckd || !lckd->dev) return NULL; |
| 90 | MobileSync* client = NULL; | 90 | MobileSync* client = NULL; |
| 91 | int port = 0; | 91 | int port = 0; |
| 92 | if (IPHONE_E_SUCCESS == lockdownd_start_service ( lckd->client, "com.apple.mobilesync", &port )) { | 92 | if (LOCKDOWN_E_SUCCESS == lockdownd_start_service(lckd->client, "com.apple.mobilesync", &port)) { |
| 93 | client = (MobileSync*) malloc(sizeof(MobileSync)); | 93 | client = (MobileSync*) malloc(sizeof(MobileSync)); |
| 94 | client->dev = lckd->dev; | 94 | client->dev = lckd->dev; |
| 95 | client->client = NULL; | 95 | client->client = NULL; |
| 96 | mobilesync_new_client ( lckd->dev->dev, port, &(client->client)); | 96 | mobilesync_client_new(lckd->dev->dev, port, &(client->client)); |
| 97 | } | 97 | } |
| 98 | return client; | 98 | return client; |
| 99 | } | 99 | } |
| @@ -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_get_device_by_uuid(&($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_get_device(&($self->dev))) |
| 131 | return 1; | 131 | return 1; |
| 132 | return 0; | 132 | return 0; |
| 133 | } | 133 | } |
| @@ -135,7 +135,7 @@ MobileSync* my_new_MobileSync(Lockdownd* lckd) { | |||
| 135 | %newobject get_uuid; | 135 | %newobject get_uuid; |
| 136 | char* get_uuid(){ | 136 | char* get_uuid(){ |
| 137 | char* uuid = NULL; | 137 | char* uuid = NULL; |
| 138 | uuid = (char *)iphone_device_get_uuid($self->dev); | 138 | iphone_device_get_uuid($self->dev, &uuid); |
| 139 | return uuid; | 139 | return uuid; |
| 140 | } | 140 | } |
| 141 | 141 | ||
| @@ -176,7 +176,7 @@ MobileSync* my_new_MobileSync(Lockdownd* lckd) { | |||
| 176 | } | 176 | } |
| 177 | 177 | ||
| 178 | ~MobileSync() { | 178 | ~MobileSync() { |
| 179 | mobilesync_free_client ( $self->client ); | 179 | mobilesync_client_free($self->client); |
| 180 | free($self); | 180 | free($self); |
| 181 | } | 181 | } |
| 182 | 182 | ||
