summaryrefslogtreecommitdiffstats
path: root/swig
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2009-04-13 10:06:42 +0200
committerGravatar Jonathan Beck2009-04-13 10:06:42 +0200
commit288929f45cb2641690879b52ec514097995cd41a (patch)
tree97f26d1b6d33b04ddc546f060624e0aa04f66d2c /swig
parent620b6315b03e2dff3067b8fe9bae4d5486009ba4 (diff)
downloadlibimobiledevice-288929f45cb2641690879b52ec514097995cd41a.tar.gz
libimobiledevice-288929f45cb2641690879b52ec514097995cd41a.tar.bz2
Conform to python naling scheme. Add docstring directive.
Diffstat (limited to 'swig')
-rw-r--r--swig/iphone.i11
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 @@
/* swig.i */
%module(package="libiphone") iPhone
+ %feature("autodoc", "1");
%{
/* Includes the header in the wrapper code */
#include <libiphone/libiphone.h>
@@ -105,13 +106,13 @@ MobileSync* my_new_MobileSync(Lockdownd* lckd) {
my_delete_iPhone($self);
}
- int InitDevice() {
+ int init_device() {
if (IPHONE_E_SUCCESS == iphone_get_device ( &($self->dev)))
return 1;
return 0;
}
- Lockdownd* GetLockdownClient() {
+ Lockdownd* get_lockdown_client() {
return my_new_Lockdownd($self);
}
};
@@ -126,7 +127,7 @@ MobileSync* my_new_MobileSync(Lockdownd* lckd) {
my_delete_Lockdownd($self);
}
- MobileSync* GetMobileSyncClient() {
+ MobileSync* get_mobile_sync_client() {
return my_new_MobileSync($self);
}
};
@@ -142,11 +143,11 @@ MobileSync* my_new_MobileSync(Lockdownd* lckd) {
free($self);
}
- void Send(PListNode* node) {
+ void send(PListNode* node) {
iphone_msync_send($self->client, node->node);
}
- PListNode* Receive() {
+ PListNode* receive() {
PListNode* node = (PListNode*)malloc(sizeof(PListNode));
node->node = NULL;
iphone_msync_recv($self->client, &(node->node));