summaryrefslogtreecommitdiffstats
path: root/swig/iphone.i
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2009-07-14 14:21:53 +0200
committerGravatar Martin Szulecki2009-07-14 14:21:53 +0200
commita68a82800f116706354adb97da1ef0cfd3e38a52 (patch)
tree329e14aa6227cbe9bd04adfdbfa6c75866375b1e /swig/iphone.i
parent5d047fd1e514e098308430fb59ba335b8ae3d385 (diff)
downloadlibimobiledevice-a68a82800f116706354adb97da1ef0cfd3e38a52.tar.gz
libimobiledevice-a68a82800f116706354adb97da1ef0cfd3e38a52.tar.bz2
Cleanup mobilesync API and bindings. Move get_all_contacts() into msyncclient.
Diffstat (limited to 'swig/iphone.i')
-rw-r--r--swig/iphone.i15
1 files changed, 8 insertions, 7 deletions
diff --git a/swig/iphone.i b/swig/iphone.i
index 25687f5..53fa8da 100644
--- a/swig/iphone.i
+++ b/swig/iphone.i
@@ -5,6 +5,7 @@
/* Includes the header in the wrapper code */
#include <libiphone/libiphone.h>
#include <libiphone/lockdown.h>
+ #include <libiphone/mobilesync.h>
#include <plist/plist.h>
#include "../src/utils.h"
typedef struct {
@@ -18,7 +19,7 @@
typedef struct {
iPhone* dev;
- iphone_msync_client_t client;
+ mobilesync_client_t client;
} MobileSync;
//now declare funtions to handle creation and deletion of objects
@@ -50,7 +51,7 @@ typedef struct {
typedef struct {
iPhone* dev;
- iphone_msync_client_t client;
+ mobilesync_client_t client;
} MobileSync;
%inline %{
@@ -93,7 +94,7 @@ MobileSync* my_new_MobileSync(Lockdownd* lckd) {
client = (MobileSync*) malloc(sizeof(MobileSync));
client->dev = lckd->dev;
client->client = NULL;
- iphone_msync_new_client ( lckd->dev->dev, port, &(client->client));
+ mobilesync_new_client ( lckd->dev->dev, port, &(client->client));
}
return client;
}
@@ -165,7 +166,7 @@ MobileSync* my_new_MobileSync(Lockdownd* lckd) {
return node;
}
- MobileSync* get_mobile_sync_client() {
+ MobileSync* get_mobilesync_client() {
return my_new_MobileSync($self);
}
};
@@ -176,18 +177,18 @@ MobileSync* my_new_MobileSync(Lockdownd* lckd) {
}
~MobileSync() {
- iphone_msync_free_client ( $self->client );
+ mobilesync_free_client ( $self->client );
free($self);
}
void send(PListNode* node) {
- iphone_msync_send($self->client, node->node);
+ mobilesync_send($self->client, node->node);
}
PListNode* receive() {
PListNode* node = (PListNode*)malloc(sizeof(PListNode));
node->node = NULL;
- iphone_msync_recv($self->client, &(node->node));
+ mobilesync_recv($self->client, &(node->node));
return node;
}
};