|
libimobiledevice
1.1.6
|
Manage provisioning profiles. More...
Macros | |
| #define | MISAGENT_SERVICE_NAME "com.apple.misagent" |
Typedefs | |
| typedef int16_t | misagent_error_t |
| Represents an error code. More... | |
| typedef misagent_client_private * | misagent_client_t |
| The client handle. More... | |
Functions | |
| misagent_error_t | misagent_client_new (idevice_t device, lockdownd_service_descriptor_t service, misagent_client_t *client) |
| Connects to the misagent service on the specified device. More... | |
| misagent_error_t | misagent_client_start_service (idevice_t device, misagent_client_t *client, const char *label) |
| Starts a new misagent service on the specified device and connects to it. More... | |
| misagent_error_t | misagent_client_free (misagent_client_t client) |
| Disconnects an misagent client from the device and frees up the misagent client data. More... | |
| misagent_error_t | misagent_install (misagent_client_t client, plist_t profile) |
| Installs the given provisioning profile. More... | |
| misagent_error_t | misagent_copy (misagent_client_t client, plist_t *profiles) |
| Retrieves an array of all installed provisioning profiles. More... | |
| misagent_error_t | misagent_remove (misagent_client_t client, const char *profileID) |
| Removes a given provisioning profile. More... | |
| int | misagent_get_status_code (misagent_client_t client) |
| Retrieves the status code from the last operation. More... | |
Manage provisioning profiles.
| typedef misagent_client_private* misagent_client_t |
The client handle.
| typedef int16_t misagent_error_t |
Represents an error code.
| misagent_error_t misagent_client_free | ( | misagent_client_t | client | ) |
Disconnects an misagent client from the device and frees up the misagent client data.
| client | The misagent client to disconnect and free. |
| misagent_error_t misagent_client_new | ( | idevice_t | device, |
| lockdownd_service_descriptor_t | service, | ||
| misagent_client_t * | client | ||
| ) |
Connects to the misagent 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 misagent_client_t upon successful return. |
Referenced by misagent_client_start_service().
| misagent_error_t misagent_client_start_service | ( | idevice_t | device, |
| misagent_client_t * | client, | ||
| const char * | label | ||
| ) |
Starts a new misagent service on the specified device and connects to it.
| device | The device to connect to. |
| client | Pointer that will point to a newly allocated misagent_client_t upon successful return. Must be freed using misagent_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. |
References misagent_client_new(), and service_client_factory_start_service().
| misagent_error_t misagent_copy | ( | misagent_client_t | client, |
| plist_t * | profiles | ||
| ) |
Retrieves an array of all installed provisioning profiles.
| client | The connected misagent to use. |
| profiles | Pointer to a plist_t that will be set to a PLIST_ARRAY if the function is successful. |
| int misagent_get_status_code | ( | misagent_client_t | client | ) |
Retrieves the status code from the last operation.
| client | The misagent to use. |
| misagent_error_t misagent_install | ( | misagent_client_t | client, |
| plist_t | profile | ||
| ) |
Installs the given provisioning profile.
Only works with valid profiles.
| client | The connected misagent to use for installation |
| profile | The valid provisioning profile to install. This has to be passed as a PLIST_DATA, otherwise the function will fail. |
| misagent_error_t misagent_remove | ( | misagent_client_t | client, |
| const char * | profileID | ||
| ) |
Removes a given provisioning profile.
| client | The connected misagent to use. |
| profileID | Identifier of the provisioning profile to remove. This is a UUID that can be obtained from the provisioning profile data. |
1.8.5