summaryrefslogtreecommitdiffstats
path: root/include/libimobiledevice/mobile_image_mounter.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libimobiledevice/mobile_image_mounter.h')
-rw-r--r--include/libimobiledevice/mobile_image_mounter.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/include/libimobiledevice/mobile_image_mounter.h b/include/libimobiledevice/mobile_image_mounter.h
index 569b288..7fe2c2a 100644
--- a/include/libimobiledevice/mobile_image_mounter.h
+++ b/include/libimobiledevice/mobile_image_mounter.h
@@ -112,11 +112,15 @@ mobile_image_mounter_error_t mobile_image_mounter_free(mobile_image_mounter_clie
112mobile_image_mounter_error_t mobile_image_mounter_lookup_image(mobile_image_mounter_client_t client, const char *image_type, plist_t *result); 112mobile_image_mounter_error_t mobile_image_mounter_lookup_image(mobile_image_mounter_client_t client, const char *image_type, plist_t *result);
113 113
114/** 114/**
115 * Uploads an image to the device. 115 * Uploads an image with an optional signature to the device.
116 * 116 *
117 * @param client The connected mobile_image_mounter client. 117 * @param client The connected mobile_image_mounter client.
118 * @param image_type Type of image that is being uploaded. 118 * @param image_type Type of image that is being uploaded.
119 * @param image_size Total size of the image. 119 * @param image_size Total size of the image.
120 * @param signature Buffer with a signature of the image being uploaded. If
121 * NULL, no signature will be used.
122 * @param signature_size Total size of the image signature buffer. If 0, no
123 * signature will be used.
120 * @param upload_cb Callback function that gets the data chunks for uploading 124 * @param upload_cb Callback function that gets the data chunks for uploading
121 * the image. 125 * the image.
122 * @param userdata User defined data for the upload callback function. 126 * @param userdata User defined data for the upload callback function.
@@ -124,7 +128,7 @@ mobile_image_mounter_error_t mobile_image_mounter_lookup_image(mobile_image_moun
124 * @return MOBILE_IMAGE_MOUNTER_E_SUCCESS on succes, or a 128 * @return MOBILE_IMAGE_MOUNTER_E_SUCCESS on succes, or a
125 * MOBILE_IMAGE_MOUNTER_E_* error code otherwise. 129 * MOBILE_IMAGE_MOUNTER_E_* error code otherwise.
126 */ 130 */
127mobile_image_mounter_error_t mobile_image_mounter_upload_image(mobile_image_mounter_client_t client, const char *image_type, size_t image_size, mobile_image_mounter_upload_cb_t upload_cb, void* userdata); 131mobile_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);
128 132
129/** 133/**
130 * Mounts an image on the device. 134 * Mounts an image on the device.
@@ -132,8 +136,8 @@ mobile_image_mounter_error_t mobile_image_mounter_upload_image(mobile_image_moun
132 * @param client The connected mobile_image_mounter client. 136 * @param client The connected mobile_image_mounter client.
133 * @param image_path The absolute path of the image to mount. The image must 137 * @param image_path The absolute path of the image to mount. The image must
134 * be present before calling this function. 138 * be present before calling this function.
135 * @param image_signature Pointer to a buffer holding the images' signature 139 * @param signature Pointer to a buffer holding the images' signature
136 * @param signature_length Length of the signature image_signature points to 140 * @param signature_size Length of the signature image_signature points to
137 * @param image_type Type of image to mount 141 * @param image_type Type of image to mount
138 * @param result Pointer to a plist that will receive the result of the 142 * @param result Pointer to a plist that will receive the result of the
139 * operation. 143 * operation.
@@ -147,7 +151,7 @@ mobile_image_mounter_error_t mobile_image_mounter_upload_image(mobile_image_moun
147 * MOBILE_IMAGE_MOUNTER_E_INVALID_ARG if on ore more parameters are 151 * MOBILE_IMAGE_MOUNTER_E_INVALID_ARG if on ore more parameters are
148 * invalid, or another error code otherwise. 152 * invalid, or another error code otherwise.
149 */ 153 */
150mobile_image_mounter_error_t mobile_image_mounter_mount_image(mobile_image_mounter_client_t client, const char *image_path, const char *image_signature, uint16_t signature_length, const char *image_type, plist_t *result); 154mobile_image_mounter_error_t mobile_image_mounter_mount_image(mobile_image_mounter_client_t client, const char *image_path, const char *signature, uint16_t signature_size, const char *image_type, plist_t *result);
151 155
152/** 156/**
153 * Hangs up the connection to the mobile_image_mounter service. 157 * Hangs up the connection to the mobile_image_mounter service.