diff options
author | Martin Szulecki | 2009-07-07 21:02:00 +0200 |
---|---|---|
committer | Matt Colyer | 2009-07-18 10:39:42 -0700 |
commit | b8ce722ffaeab22e141e18907c46bbed4659d857 (patch) | |
tree | b30563dacd1ef2699fe79af9695bf237e1e688aa /swig | |
parent | ab8e29dafc0577203e6867329b1d3ff9095a4fb2 (diff) | |
download | libimobiledevice-b8ce722ffaeab22e141e18907c46bbed4659d857.tar.gz libimobiledevice-b8ce722ffaeab22e141e18907c46bbed4659d857.tar.bz2 |
Cleanup lockdown request API and fix docs, tools, bindings and exports
Diffstat (limited to 'swig')
-rw-r--r-- | swig/iphone.i | 17 |
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; } |