libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ mobilesync_anchors_new()

mobilesync_anchors_t mobilesync_anchors_new ( const char *  device_anchor,
const char *  computer_anchor 
)

Allocates memory for a new anchors struct initialized with the passed anchors.

Parameters
device_anchorAn anchor the device reported the last time or NULL if none is known yet which for instance is true on first synchronization.
computer_anchorAn arbitrary string to use as anchor for the computer.
Returns
A new mobilesync_anchors_t struct. Must be freed using mobilesync_anchors_free().