libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ mobile_image_mounter_upload_image()

mobile_image_mounter_error_t mobile_image_mounter_upload_image ( mobile_image_mounter_client_t  client,
const char *  image_type,
size_t  image_size,
const char *  signature,
uint16_t  signature_size,
mobile_image_mounter_upload_cb_t  upload_cb,
void *  userdata 
)

Uploads an image with an optional signature to the device.

Parameters
clientThe connected mobile_image_mounter client.
image_typeType of image that is being uploaded.
image_sizeTotal size of the image.
signatureBuffer with a signature of the image being uploaded. If NULL, no signature will be used.
signature_sizeTotal size of the image signature buffer. If 0, no signature will be used.
upload_cbCallback function that gets the data chunks for uploading the image.
userdataUser defined data for the upload callback function.
Returns
MOBILE_IMAGE_MOUNTER_E_SUCCESS on succes, or a MOBILE_IMAGE_MOUNTER_E_* error code otherwise.