From f4d8e4f4a42efa6329b2adf6e8554d7235d5f95e Mon Sep 17 00:00:00 2001 From: Kirby Kuehl Date: Sat, 7 Jun 2025 00:53:16 +0200 Subject: Add idevice_strerror() to interface --- include/libimobiledevice/libimobiledevice.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/libimobiledevice') diff --git a/include/libimobiledevice/libimobiledevice.h b/include/libimobiledevice/libimobiledevice.h index 897aa37..8df3fed 100644 --- a/include/libimobiledevice/libimobiledevice.h +++ b/include/libimobiledevice/libimobiledevice.h @@ -403,6 +403,15 @@ LIBIMOBILEDEVICE_API idevice_error_t idevice_get_handle(idevice_t device, uint32 */ LIBIMOBILEDEVICE_API idevice_error_t idevice_get_udid(idevice_t device, char **udid); +/** + * Gets a readable error string for a given idevice error code. + * + * @param err An idevice error code + * + * @return A readable error string + */ +LIBIMOBILEDEVICE_API const char* idevice_strerror(idevice_error_t err); + /** * Returns a static string of the libimobiledevice version. * -- cgit v1.1-32-gdbae