libimobiledevice/mobile_image_mounter.h File Reference
Mount developer/debug disk images on the device.
More...
Detailed Description
Mount developer/debug disk images on the device.
Typedef Documentation
Represents an error code.
Function Documentation
Disconnects a mobile_image_mounter client from the device and frees up the mobile_image_mounter client data.
- Parameters:
-
| client | The mobile_image_mounter client to disconnect and free. |
- Returns:
- MOBILE_IMAGE_MOUNTER_E_SUCCESS on success, or MOBILE_IMAGE_MOUNTER_E_INVALID_ARG if client is NULL.
Hangs up the connection to the mobile_image_mounter service.
This functions has to be called before freeing up a mobile_image_mounter instance. If not, errors appear in the device's syslog.
- Parameters:
-
| client | The client to hang up |
- Returns:
- MOBILE_IMAGE_MOUNTER_E_SUCCESS on success, MOBILE_IMAGE_MOUNTER_E_INVALID_ARG if client is invalid, or another error code otherwise.
Tells if the image of ImageType is already mounted.
- Parameters:
-
| client | The client use - Parameters:
-
| image_type | The type of the image to look up - Parameters:
-
| result | Pointer to a plist that will receive the result of the operation. |
- Note:
- This function may return MOBILE_IMAGE_MOUNTER_E_SUCCESS even if the operation has failed. Check the resulting plist for further information.
- Returns:
- MOBILE_IMAGE_MOUNTER_E_SUCCESS on success, or an error code on error
|
|
Mounts an image on the device.
- Parameters:
-
| client | The connected mobile_image_mounter client. - Parameters:
-
| image_path | The absolute path of the image to mount. The image must be present before calling this function. - Parameters:
-
| image_signature | Pointer to a buffer holding the images' signature - Parameters:
-
| signature_length | Length of the signature image_signature points to - Parameters:
-
| image_type | Type of image to mount - Parameters:
-
| result | Pointer to a plist that will receive the result of the operation. |
- Note:
- This function may return MOBILE_IMAGE_MOUNTER_E_SUCCESS even if the operation has failed. Check the resulting plist for further information. Note that there is no unmounting function. The mount persists until the device is rebooted.
- Returns:
- MOBILE_IMAGE_MOUNTER_E_SUCCESS on success, MOBILE_IMAGE_MOUNTER_E_INVALID_ARG if on ore more parameters are invalid, or another error code otherwise.
|
|
|
|
|
Connects to the mobile_image_mounter service on the specified device.
- Parameters:
-
| device | The device to connect to. - Parameters:
-
| port | Destination port (usually given by lockdownd_start_service). - Parameters:
-
| client | Pointer that will be set to a newly allocated mobile_image_mounter_client_t upon successful return. |
- Returns:
- MOBILE_IMAGE_MOUNTER_E_SUCCESS on success, MOBILE_IMAGE_MOUNTER_E_INVALID_ARG if device is NULL, or MOBILE_IMAGE_MOUNTER_E_CONN_FAILED if the connection to the device could not be established.
|
|