|
libimobiledevice
1.3.0
|
Access app folders and their contents. More...
Macros | |
| #define | HOUSE_ARREST_SERVICE_NAME "com.apple.mobile.house_arrest" |
Typedefs | |
| typedef struct house_arrest_client_private | house_arrest_client_private |
| typedef house_arrest_client_private * | house_arrest_client_t |
| The client handle. | |
Enumerations | |
| enum | house_arrest_error_t { HOUSE_ARREST_E_SUCCESS = 0, HOUSE_ARREST_E_INVALID_ARG = -1, HOUSE_ARREST_E_PLIST_ERROR = -2, HOUSE_ARREST_E_CONN_FAILED = -3, HOUSE_ARREST_E_INVALID_MODE = -4, HOUSE_ARREST_E_UNKNOWN_ERROR = -256 } |
| Error Codes. | |
Functions | |
| house_arrest_error_t | house_arrest_client_new (idevice_t device, lockdownd_service_descriptor_t service, house_arrest_client_t *client) |
| Connects to the house_arrest service on the specified device. More... | |
| house_arrest_error_t | house_arrest_client_start_service (idevice_t device, house_arrest_client_t *client, const char *label) |
| Starts a new house_arrest service on the specified device and connects to it. More... | |
| house_arrest_error_t | house_arrest_client_free (house_arrest_client_t client) |
| Disconnects an house_arrest client from the device and frees up the house_arrest client data. More... | |
| house_arrest_error_t | house_arrest_send_request (house_arrest_client_t client, plist_t dict) |
| Sends a generic request to the connected house_arrest service. More... | |
| house_arrest_error_t | house_arrest_send_command (house_arrest_client_t client, const char *command, const char *appid) |
| Send a command to the connected house_arrest service. More... | |
| house_arrest_error_t | house_arrest_get_result (house_arrest_client_t client, plist_t *dict) |
| Retrieves the result of a previously sent house_arrest_request_* request. More... | |
| afc_error_t | afc_client_new_from_house_arrest_client (house_arrest_client_t client, afc_client_t *afc_client) |
| Creates an AFC client using the given house_arrest client's connection allowing file access to a specific application directory requested by functions like house_arrest_request_vendor_documents(). More... | |
Access app folders and their contents.
| afc_error_t afc_client_new_from_house_arrest_client | ( | house_arrest_client_t | client, |
| afc_client_t * | afc_client | ||
| ) |
Creates an AFC client using the given house_arrest client's connection allowing file access to a specific application directory requested by functions like house_arrest_request_vendor_documents().
| client | The house_arrest client to use. |
| afc_client | Pointer that will be set to a newly allocated afc_client_t upon successful return. |
| house_arrest_error_t house_arrest_client_free | ( | house_arrest_client_t | client | ) |
Disconnects an house_arrest client from the device and frees up the house_arrest client data.
| client | The house_arrest client to disconnect and free. |
| house_arrest_error_t house_arrest_client_new | ( | idevice_t | device, |
| lockdownd_service_descriptor_t | service, | ||
| house_arrest_client_t * | client | ||
| ) |
Connects to the house_arrest service on the specified device.
| device | The device to connect to. |
| service | The service descriptor returned by lockdownd_start_service. |
| client | Pointer that will point to a newly allocated housearrest_client_t upon successful return. |
| house_arrest_error_t house_arrest_client_start_service | ( | idevice_t | device, |
| house_arrest_client_t * | client, | ||
| const char * | label | ||
| ) |
Starts a new house_arrest service on the specified device and connects to it.
| device | The device to connect to. |
| client | Pointer that will point to a newly allocated house_arrest_client_t upon successful return. Must be freed using house_arrest_client_free() after use. |
| label | The label to use for communication. Usually the program name. Pass NULL to disable sending the label in requests to lockdownd. |
| house_arrest_error_t house_arrest_get_result | ( | house_arrest_client_t | client, |
| plist_t * | dict | ||
| ) |
Retrieves the result of a previously sent house_arrest_request_* request.
| client | The house_arrest client to use |
| dict | Pointer that will be set to a plist containing the result to the last performed operation. It holds a key 'Status' with the value 'Complete' on success or a key 'Error' with an error description as value. The caller is responsible for freeing the returned plist. |
| house_arrest_error_t house_arrest_send_command | ( | house_arrest_client_t | client, |
| const char * | command, | ||
| const char * | appid | ||
| ) |
Send a command to the connected house_arrest service.
Calls house_arrest_send_request() internally.
| client | The house_arrest client to use. |
| command | The command to send. Currently, only VendContainer and VendDocuments are known. |
| appid | The application identifier to pass along with the . |
| house_arrest_error_t house_arrest_send_request | ( | house_arrest_client_t | client, |
| plist_t | dict | ||
| ) |
Sends a generic request to the connected house_arrest service.
| client | The house_arrest client to use. |
| dict | The request to send as a plist of type PLIST_DICT. |
1.8.16