diff options
Diffstat (limited to 'swig')
| -rw-r--r-- | swig/iphone.i | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/swig/iphone.i b/swig/iphone.i index e970e89..3ae0999 100644 --- a/swig/iphone.i +++ b/swig/iphone.i | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | /* swig.i */ | 1 | /* swig.i */ |
| 2 | %module(package="libiphone") iPhone | 2 | %module(package="libiphone") iPhone |
| 3 | %feature("autodoc", "1"); | ||
| 3 | %{ | 4 | %{ |
| 4 | /* Includes the header in the wrapper code */ | 5 | /* Includes the header in the wrapper code */ |
| 5 | #include <libiphone/libiphone.h> | 6 | #include <libiphone/libiphone.h> |
| @@ -105,13 +106,13 @@ MobileSync* my_new_MobileSync(Lockdownd* lckd) { | |||
| 105 | my_delete_iPhone($self); | 106 | my_delete_iPhone($self); |
| 106 | } | 107 | } |
| 107 | 108 | ||
| 108 | int InitDevice() { | 109 | int init_device() { |
| 109 | if (IPHONE_E_SUCCESS == iphone_get_device ( &($self->dev))) | 110 | if (IPHONE_E_SUCCESS == iphone_get_device ( &($self->dev))) |
| 110 | return 1; | 111 | return 1; |
| 111 | return 0; | 112 | return 0; |
| 112 | } | 113 | } |
| 113 | 114 | ||
| 114 | Lockdownd* GetLockdownClient() { | 115 | Lockdownd* get_lockdown_client() { |
| 115 | return my_new_Lockdownd($self); | 116 | return my_new_Lockdownd($self); |
| 116 | } | 117 | } |
| 117 | }; | 118 | }; |
| @@ -126,7 +127,7 @@ MobileSync* my_new_MobileSync(Lockdownd* lckd) { | |||
| 126 | my_delete_Lockdownd($self); | 127 | my_delete_Lockdownd($self); |
| 127 | } | 128 | } |
| 128 | 129 | ||
| 129 | MobileSync* GetMobileSyncClient() { | 130 | MobileSync* get_mobile_sync_client() { |
| 130 | return my_new_MobileSync($self); | 131 | return my_new_MobileSync($self); |
| 131 | } | 132 | } |
| 132 | }; | 133 | }; |
| @@ -142,11 +143,11 @@ MobileSync* my_new_MobileSync(Lockdownd* lckd) { | |||
| 142 | free($self); | 143 | free($self); |
| 143 | } | 144 | } |
| 144 | 145 | ||
| 145 | void Send(PListNode* node) { | 146 | void send(PListNode* node) { |
| 146 | iphone_msync_send($self->client, node->node); | 147 | iphone_msync_send($self->client, node->node); |
| 147 | } | 148 | } |
| 148 | 149 | ||
| 149 | PListNode* Receive() { | 150 | PListNode* receive() { |
| 150 | PListNode* node = (PListNode*)malloc(sizeof(PListNode)); | 151 | PListNode* node = (PListNode*)malloc(sizeof(PListNode)); |
| 151 | node->node = NULL; | 152 | node->node = NULL; |
| 152 | iphone_msync_recv($self->client, &(node->node)); | 153 | iphone_msync_recv($self->client, &(node->node)); |
