summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2009-07-25 01:02:11 +0200
committerGravatar Martin Szulecki2009-07-25 01:02:11 +0200
commite2372b2f7f8f9017c9f90a7ed4d01997fb9ba464 (patch)
tree8e3017a96b3ca7a54f933f3c19b059300be30bab
parentc3d9e80985ef52eebb25bb07512cabc52786c130 (diff)
downloadlibimobiledevice-e2372b2f7f8f9017c9f90a7ed4d01997fb9ba464.tar.gz
libimobiledevice-e2372b2f7f8f9017c9f90a7ed4d01997fb9ba464.tar.bz2
Fix Python bindings build due to signature change of iphone_device_get_uuid()
-rw-r--r--swig/iphone.i18
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 {
void my_delete_iPhone(iPhone* dev) {
if (dev) {
- iphone_free_device ( dev->dev );
+ iphone_device_free(dev->dev);
free(dev);
}
}
@@ -69,7 +69,7 @@ Lockdownd* my_new_Lockdownd(iPhone* phone) {
Lockdownd* client = (Lockdownd*) malloc(sizeof(Lockdownd));
client->dev = phone;
client->client = NULL;
- if (IPHONE_E_SUCCESS == lockdownd_new_client ( phone->dev , &(client->client))) {
+ if (LOCKDOWN_E_SUCCESS == lockdownd_client_new(phone->dev , &(client->client))) {
return client;
}
else {
@@ -80,7 +80,7 @@ Lockdownd* my_new_Lockdownd(iPhone* phone) {
void my_delete_Lockdownd(Lockdownd* lckd) {
if (lckd) {
- lockdownd_free_client ( lckd->client );
+ lockdownd_client_free(lckd->client);
free(lckd);
}
}
@@ -89,11 +89,11 @@ MobileSync* my_new_MobileSync(Lockdownd* lckd) {
if (!lckd || !lckd->dev) return NULL;
MobileSync* client = NULL;
int port = 0;
- if (IPHONE_E_SUCCESS == lockdownd_start_service ( lckd->client, "com.apple.mobilesync", &port )) {
+ if (LOCKDOWN_E_SUCCESS == lockdownd_start_service(lckd->client, "com.apple.mobilesync", &port)) {
client = (MobileSync*) malloc(sizeof(MobileSync));
client->dev = lckd->dev;
client->client = NULL;
- mobilesync_new_client ( lckd->dev->dev, port, &(client->client));
+ mobilesync_client_new(lckd->dev->dev, port, &(client->client));
}
return client;
}
@@ -121,13 +121,13 @@ MobileSync* my_new_MobileSync(Lockdownd* lckd) {
}
int init_device_by_uuid(char* uuid) {
- if (IPHONE_E_SUCCESS == iphone_get_device_by_uuid ( &($self->dev), uuid))
+ if (IPHONE_E_SUCCESS == iphone_get_device_by_uuid(&($self->dev), uuid))
return 1;
return 0;
}
int init_device() {
- if (IPHONE_E_SUCCESS == iphone_get_device ( &($self->dev)))
+ if (IPHONE_E_SUCCESS == iphone_get_device(&($self->dev)))
return 1;
return 0;
}
@@ -135,7 +135,7 @@ MobileSync* my_new_MobileSync(Lockdownd* lckd) {
%newobject get_uuid;
char* get_uuid(){
char* uuid = NULL;
- uuid = (char *)iphone_device_get_uuid($self->dev);
+ iphone_device_get_uuid($self->dev, &uuid);
return uuid;
}
@@ -176,7 +176,7 @@ MobileSync* my_new_MobileSync(Lockdownd* lckd) {
}
~MobileSync() {
- mobilesync_free_client ( $self->client );
+ mobilesync_client_free($self->client);
free($self);
}