summaryrefslogtreecommitdiffstats
path: root/swig
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2009-07-14 14:21:53 +0200
committerGravatar Matt Colyer2009-07-18 10:39:42 -0700
commit484ff2166a2de58dd185a05fefea47a3f8165033 (patch)
treea8b6f712399369b60999dcd81c8bdbdd36c8ce8b /swig
parent5fa071717799ee2424c41b62360c7122b104fefb (diff)
downloadlibimobiledevice-484ff2166a2de58dd185a05fefea47a3f8165033.tar.gz
libimobiledevice-484ff2166a2de58dd185a05fefea47a3f8165033.tar.bz2
Cleanup mobilesync API and bindings. Move get_all_contacts() into msyncclient.
Diffstat (limited to 'swig')
-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;
}
};