From 0bdef85018d0ce1294261ab6e11697b041657557 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Thu, 1 Feb 2024 00:56:53 +0100 Subject: Add afc_strerror function to interface --- include/libimobiledevice/afc.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/libimobiledevice') diff --git a/include/libimobiledevice/afc.h b/include/libimobiledevice/afc.h index 0086eb6..4ad3dbd 100644 --- a/include/libimobiledevice/afc.h +++ b/include/libimobiledevice/afc.h @@ -369,6 +369,15 @@ LIBIMOBILEDEVICE_API afc_error_t afc_get_device_info_key(afc_client_t client, co */ LIBIMOBILEDEVICE_API afc_error_t afc_dictionary_free(char **dictionary); +/** + * Gets a readable error string for a given AFC error code. + * + * @param err An AFC error code + * + * @returns A readable error string + */ +LIBIMOBILEDEVICE_API const char* afc_strerror(afc_error_t err); + #ifdef __cplusplus } #endif -- cgit v1.1-32-gdbae