From d4694679f918750e920a2238d891cd2fbb741a90 Mon Sep 17 00:00:00 2001 From: Jonathan Beck Date: Tue, 13 Jan 2009 18:57:52 +0100 Subject: Add parts of a python binding to libiphone that also include libplist (using SWIG). --- src/MobileSync.c | 4 ++-- src/MobileSync.h | 9 +-------- 2 files changed, 3 insertions(+), 10 deletions(-) (limited to 'src') 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) array = NULL; } -void iphone_msync_free_client(iphone_msync_client_t client) +iphone_error_t iphone_msync_free_client(iphone_msync_client_t client) { iphone_msync_stop_session(client); - iphone_mux_free_client(client->connection); + return iphone_mux_free_client(client->connection); } /** 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 @@ #include -struct iphone_msync_client_int; -typedef struct iphone_msync_client_int *iphone_msync_client_t; + struct iphone_msync_client_int { iphone_umux_client_t connection; }; -iphone_error_t iphone_msync_new_client(iphone_device_t device, int src_port, int dst_port, - iphone_msync_client_t * client); -void iphone_msync_free_client(iphone_msync_client_t client); - -iphone_error_t iphone_msync_recv(iphone_msync_client_t client, plist_t * plist); -iphone_error_t iphone_msync_send(iphone_msync_client_t client, plist_t plist); iphone_error_t iphone_msync_get_all_contacts(iphone_msync_client_t client); -- cgit v1.1-32-gdbae