summaryrefslogtreecommitdiffstats
path: root/swig/iphone.i
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2009-07-07 21:02:00 +0200
committerGravatar Martin Szulecki2009-07-07 21:02:00 +0200
commit62a6f558ac7ca7a9b83c2ed810929732c02bbc9d (patch)
tree4e78a77238af4d96e00f5b16b7a276f9a7db91f1 /swig/iphone.i
parenta1e2fec59eb7d0d2a3adbd4691b3ea2ee1302921 (diff)
downloadlibimobiledevice-62a6f558ac7ca7a9b83c2ed810929732c02bbc9d.tar.gz
libimobiledevice-62a6f558ac7ca7a9b83c2ed810929732c02bbc9d.tar.bz2
Cleanup lockdown request API and fix docs, tools, bindings and exports
Diffstat (limited to 'swig/iphone.i')
-rw-r--r--swig/iphone.i17
1 files changed, 9 insertions, 8 deletions
diff --git a/swig/iphone.i b/swig/iphone.i
index 0a337ad..25687f5 100644
--- a/swig/iphone.i
+++ b/swig/iphone.i
@@ -4,15 +4,16 @@
%{
/* Includes the header in the wrapper code */
#include <libiphone/libiphone.h>
+ #include <libiphone/lockdown.h>
#include <plist/plist.h>
-#include "../src/utils.h"
+ #include "../src/utils.h"
typedef struct {
iphone_device_t dev;
} iPhone;
typedef struct {
iPhone* dev;
- iphone_lckd_client_t client;
+ lockdownd_client_t client;
} Lockdownd;
typedef struct {
@@ -44,7 +45,7 @@ typedef struct {
typedef struct {
iPhone* dev;
- iphone_lckd_client_t client;
+ lockdownd_client_t client;
} Lockdownd;
typedef struct {
@@ -68,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 == iphone_lckd_new_client ( phone->dev , &(client->client))) {
+ if (IPHONE_E_SUCCESS == lockdownd_new_client ( phone->dev , &(client->client))) {
return client;
}
else {
@@ -79,7 +80,7 @@ Lockdownd* my_new_Lockdownd(iPhone* phone) {
void my_delete_Lockdownd(Lockdownd* lckd) {
if (lckd) {
- iphone_lckd_free_client ( lckd->client );
+ lockdownd_free_client ( lckd->client );
free(lckd);
}
}
@@ -88,7 +89,7 @@ MobileSync* my_new_MobileSync(Lockdownd* lckd) {
if (!lckd || !lckd->dev) return NULL;
MobileSync* client = NULL;
int port = 0;
- if (IPHONE_E_SUCCESS == iphone_lckd_start_service ( lckd->client, "com.apple.mobilesync", &port )) {
+ if (IPHONE_E_SUCCESS == lockdownd_start_service ( lckd->client, "com.apple.mobilesync", &port )) {
client = (MobileSync*) malloc(sizeof(MobileSync));
client->dev = lckd->dev;
client->client = NULL;
@@ -154,13 +155,13 @@ MobileSync* my_new_MobileSync(Lockdownd* lckd) {
}
void send(PListNode* node) {
- iphone_lckd_send($self->client, node->node);
+ lockdownd_send($self->client, node->node);
}
PListNode* receive() {
PListNode* node = (PListNode*)malloc(sizeof(PListNode));
node->node = NULL;
- iphone_lckd_recv($self->client, &(node->node));
+ lockdownd_recv($self->client, &(node->node));
return node;
}