From 2a9e6fe37467bfb13b415d7654f825269e08603f Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Thu, 1 Dec 2016 03:43:05 +0100 Subject: misagent: Add new misagent_copy_all() function (introduced in iOS 9.3) --- include/libimobiledevice/misagent.h | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/libimobiledevice/misagent.h b/include/libimobiledevice/misagent.h index 92165f2..09af57a 100644 --- a/include/libimobiledevice/misagent.h +++ b/include/libimobiledevice/misagent.h @@ -101,7 +101,7 @@ misagent_error_t misagent_client_free(misagent_client_t client); misagent_error_t misagent_install(misagent_client_t client, plist_t profile); /** - * Retrieves an array of all installed provisioning profiles. + * Retrieves all installed provisioning profiles (iOS 9.2.1 or below). * * @param client The connected misagent to use. * @param profiles Pointer to a plist_t that will be set to a PLIST_ARRAY @@ -110,12 +110,34 @@ misagent_error_t misagent_install(misagent_client_t client, plist_t profile); * @return MISAGENT_E_SUCCESS on success, MISAGENT_E_INVALID_ARG when * client is invalid, or an MISAGENT_E_* error code otherwise. * + * @note This API call only works with iOS 9.2.1 or below. + * For newer iOS versions use misagent_copy_all() instead. + * * @note If no provisioning profiles are installed on the device, this function * still returns MISAGENT_E_SUCCESS and profiles will just point to an * empty array. */ misagent_error_t misagent_copy(misagent_client_t client, plist_t* profiles); +/** + * Retrieves all installed provisioning profiles (iOS 9.3 or higher). + * + * @param client The connected misagent to use. + * @param profiles Pointer to a plist_t that will be set to a PLIST_ARRAY + * if the function is successful. + * + * @return MISAGENT_E_SUCCESS on success, MISAGENT_E_INVALID_ARG when + * client is invalid, or an MISAGENT_E_* error code otherwise. + * + * @note This API call only works with iOS 9.3 or higher. + * For older iOS versions use misagent_copy() instead. + * + * @note If no provisioning profiles are installed on the device, this function + * still returns MISAGENT_E_SUCCESS and profiles will just point to an + * empty array. + */ +misagent_error_t misagent_copy_all(misagent_client_t client, plist_t* profiles); + /** * Removes a given provisioning profile. * -- cgit v1.1-32-gdbae