libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ mobilebackup2_send_raw()

mobilebackup2_error_t mobilebackup2_send_raw ( mobilebackup2_client_t  client,
const char *  data,
uint32_t  length,
uint32_t *  bytes 
)

Send binary data to the device.

Note
This function returns MOBILEBACKUP2_E_SUCCESS even if less than the requested length has been sent. The fourth parameter is required and must be checked to ensure if the whole data has been sent.
Parameters
clientThe MobileBackup client to send to.
dataPointer to the data to send
lengthNumber of bytes to send
bytesNumber of bytes actually sent
Returns
MOBILEBACKUP2_E_SUCCESS if any data was successfully sent, MOBILEBACKUP2_E_INVALID_ARG if one of the parameters is invalid, or MOBILEBACKUP2_E_MUX_ERROR if sending of the data failed.