summaryrefslogtreecommitdiffstats
path: root/include/libiphone/mobilesync.h
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2009-07-25 02:08:12 +0200
committerGravatar Martin Szulecki2009-07-25 02:08:12 +0200
commit40a0abaa1c7f2196d40276b0689b18a04e468acd (patch)
treeaee97118e637ccc7b8ab638a77a154b6bbed4f4b /include/libiphone/mobilesync.h
parent66695e6b7db9457d5ecfe6f4f6624dc195e5274d (diff)
downloadlibimobiledevice-40a0abaa1c7f2196d40276b0689b18a04e468acd.tar.gz
libimobiledevice-40a0abaa1c7f2196d40276b0689b18a04e468acd.tar.bz2
Update MobileSync API and introduce mobilesync error codes
Diffstat (limited to 'include/libiphone/mobilesync.h')
-rw-r--r--include/libiphone/mobilesync.h20
1 files changed, 15 insertions, 5 deletions
diff --git a/include/libiphone/mobilesync.h b/include/libiphone/mobilesync.h
index 128be45..f8fa711 100644
--- a/include/libiphone/mobilesync.h
+++ b/include/libiphone/mobilesync.h
@@ -27,14 +27,24 @@ extern "C" {
27 27
28#include <libiphone/libiphone.h> 28#include <libiphone/libiphone.h>
29 29
30/* Error Codes */
31#define MOBILESYNC_E_SUCCESS 0
32#define MOBILESYNC_E_INVALID_ARG -1
33#define MOBILESYNC_E_PLIST_ERROR -2
34#define MOBILESYNC_E_MUX_ERROR -3
35#define MOBILESYNC_E_BAD_VERSION -4
36
37#define MOBILESYNC_E_UNKNOWN_ERROR -256
38
39typedef int16_t mobilesync_error_t;
40
30struct mobilesync_client_int; 41struct mobilesync_client_int;
31typedef struct mobilesync_client_int *mobilesync_client_t; 42typedef struct mobilesync_client_int *mobilesync_client_t;
32 43
33iphone_error_t mobilesync_new_client(iphone_device_t device, int dst_port, 44mobilesync_error_t mobilesync_client_new(iphone_device_t device, int dst_port, mobilesync_client_t * client);
34 mobilesync_client_t * client); 45mobilesync_error_t mobilesync_client_free(mobilesync_client_t client);
35iphone_error_t mobilesync_free_client(mobilesync_client_t client); 46mobilesync_error_t mobilesync_recv(mobilesync_client_t client, plist_t *plist);
36iphone_error_t mobilesync_recv(mobilesync_client_t client, plist_t *plist); 47mobilesync_error_t mobilesync_send(mobilesync_client_t client, plist_t plist);
37iphone_error_t mobilesync_send(mobilesync_client_t client, plist_t plist);
38 48
39#ifdef __cplusplus 49#ifdef __cplusplus
40} 50}