diff options
| author | 2009-01-13 18:57:52 +0100 | |
|---|---|---|
| committer | 2009-01-13 18:57:52 +0100 | |
| commit | d4694679f918750e920a2238d891cd2fbb741a90 (patch) | |
| tree | ea52b9d253993b31ec71cbad35280d7c5eeab957 /src | |
| parent | 564aebf941f2f0c5fb57d2f86091b37d6331b9d9 (diff) | |
| download | libimobiledevice-d4694679f918750e920a2238d891cd2fbb741a90.tar.gz libimobiledevice-d4694679f918750e920a2238d891cd2fbb741a90.tar.bz2 | |
Add parts of a python binding to libiphone that also include libplist (using SWIG).
Diffstat (limited to 'src')
| -rw-r--r-- | src/MobileSync.c | 4 | ||||
| -rw-r--r-- | src/MobileSync.h | 9 |
2 files changed, 3 insertions, 10 deletions
diff --git a/src/MobileSync.c b/src/MobileSync.c index ae22f4b..a2a361e 100644 --- a/src/MobileSync.c +++ b/src/MobileSync.c | |||
| @@ -115,11 +115,11 @@ static void iphone_msync_stop_session(iphone_msync_client_t client) | |||
| 115 | array = NULL; | 115 | array = NULL; |
| 116 | } | 116 | } |
| 117 | 117 | ||
| 118 | void iphone_msync_free_client(iphone_msync_client_t client) | 118 | iphone_error_t iphone_msync_free_client(iphone_msync_client_t client) |
| 119 | { | 119 | { |
| 120 | iphone_msync_stop_session(client); | 120 | iphone_msync_stop_session(client); |
| 121 | 121 | ||
| 122 | iphone_mux_free_client(client->connection); | 122 | return iphone_mux_free_client(client->connection); |
| 123 | } | 123 | } |
| 124 | 124 | ||
| 125 | /** Polls the iPhone for MobileSync data. | 125 | /** Polls the iPhone for MobileSync data. |
diff --git a/src/MobileSync.h b/src/MobileSync.h index b59547c..7655b59 100644 --- a/src/MobileSync.h +++ b/src/MobileSync.h | |||
| @@ -27,19 +27,12 @@ | |||
| 27 | 27 | ||
| 28 | #include <plist/plist.h> | 28 | #include <plist/plist.h> |
| 29 | 29 | ||
| 30 | struct iphone_msync_client_int; | 30 | |
| 31 | typedef struct iphone_msync_client_int *iphone_msync_client_t; | ||
| 32 | 31 | ||
| 33 | struct iphone_msync_client_int { | 32 | struct iphone_msync_client_int { |
| 34 | iphone_umux_client_t connection; | 33 | iphone_umux_client_t connection; |
| 35 | }; | 34 | }; |
| 36 | 35 | ||
| 37 | iphone_error_t iphone_msync_new_client(iphone_device_t device, int src_port, int dst_port, | ||
| 38 | iphone_msync_client_t * client); | ||
| 39 | void iphone_msync_free_client(iphone_msync_client_t client); | ||
| 40 | |||
| 41 | iphone_error_t iphone_msync_recv(iphone_msync_client_t client, plist_t * plist); | ||
| 42 | iphone_error_t iphone_msync_send(iphone_msync_client_t client, plist_t plist); | ||
| 43 | 36 | ||
| 44 | iphone_error_t iphone_msync_get_all_contacts(iphone_msync_client_t client); | 37 | iphone_error_t iphone_msync_get_all_contacts(iphone_msync_client_t client); |
| 45 | 38 | ||
