libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ lockdownd_get_sync_data_classes()

lockdownd_error_t lockdownd_get_sync_data_classes ( lockdownd_client_t  client,
char ***  classes,
int *  count 
)

Calculates and returns the data classes the device supports from lockdownd.

Parameters
clientAn initialized lockdownd client.
classesA pointer to store an array of class names. The caller is responsible for freeing the memory which can be done using mobilesync_data_classes_free().
countThe number of items in the classes array.
Returns
LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG when client is NULL, LOCKDOWN_E_NO_RUNNING_SESSION if no session is open, LOCKDOWN_E_PLIST_ERROR if the received plist is broken