libiphone/mobilesync.h File Reference

MobileSync Implementation. More...


Defines

#define MOBILESYNC_E_SUCCESS   0
#define MOBILESYNC_E_INVALID_ARG   -1
#define MOBILESYNC_E_PLIST_ERROR   -2
#define MOBILESYNC_E_MUX_ERROR   -3
#define MOBILESYNC_E_BAD_VERSION   -4
#define MOBILESYNC_E_UNKNOWN_ERROR   -256

Typedefs

typedef int16_t mobilesync_error_t
typedef struct
mobilesync_client_int * 
mobilesync_client_t

Functions

mobilesync_error_t mobilesync_client_new (iphone_device_t device, int dst_port, mobilesync_client_t *client)
mobilesync_error_t mobilesync_client_free (mobilesync_client_t client)
mobilesync_error_t mobilesync_recv (mobilesync_client_t client, plist_t *plist)
 Polls the iPhone for MobileSync data.
mobilesync_error_t mobilesync_send (mobilesync_client_t client, plist_t plist)
 Sends MobileSync data to the iPhone.


Detailed Description

MobileSync Implementation.


Function Documentation

mobilesync_error_t mobilesync_recv ( mobilesync_client_t  client,
plist_t *  plist 
)

Polls the iPhone for MobileSync data.

Parameters:
client The MobileSync client
plist A pointer to the location where the plist should be stored
Returns:
an error code

mobilesync_error_t mobilesync_send ( mobilesync_client_t  client,
plist_t  plist 
)

Sends MobileSync data to the iPhone.

Note:
This function is low-level and should only be used if you need to send a new type of message.
Parameters:
client The MobileSync client
plist The location of the plist to send
Returns:
an error code


Generated on Mon Jul 27 08:42:31 2009 for libiphone by  doxygen 1.5.6