summaryrefslogtreecommitdiffstats
path: root/swig/iphone.i
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2009-07-07 21:02:00 +0200
committerGravatar Matt Colyer2009-07-18 10:39:42 -0700
commitb8ce722ffaeab22e141e18907c46bbed4659d857 (patch)
treeb30563dacd1ef2699fe79af9695bf237e1e688aa /swig/iphone.i
parentab8e29dafc0577203e6867329b1d3ff9095a4fb2 (diff)
downloadlibimobiledevice-b8ce722ffaeab22e141e18907c46bbed4659d857.tar.gz
libimobiledevice-b8ce722ffaeab22e141e18907c46bbed4659d857.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;
}