diff options
author | 2024-02-01 00:56:53 +0100 | |
---|---|---|
committer | 2024-02-01 00:56:53 +0100 | |
commit | 0bdef85018d0ce1294261ab6e11697b041657557 (patch) | |
tree | 6d76033202ae3f601884ea9889f3ed2b9993e9d3 /include | |
parent | 63bbac545efc400373a7f472fdd78174149119c3 (diff) | |
download | libimobiledevice-0bdef85018d0ce1294261ab6e11697b041657557.tar.gz libimobiledevice-0bdef85018d0ce1294261ab6e11697b041657557.tar.bz2 |
Add afc_strerror function to interface
Diffstat (limited to 'include')
-rw-r--r-- | include/libimobiledevice/afc.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 | |||
369 | */ | 369 | */ |
370 | LIBIMOBILEDEVICE_API afc_error_t afc_dictionary_free(char **dictionary); | 370 | LIBIMOBILEDEVICE_API afc_error_t afc_dictionary_free(char **dictionary); |
371 | 371 | ||
372 | /** | ||
373 | * Gets a readable error string for a given AFC error code. | ||
374 | * | ||
375 | * @param err An AFC error code | ||
376 | * | ||
377 | * @returns A readable error string | ||
378 | */ | ||
379 | LIBIMOBILEDEVICE_API const char* afc_strerror(afc_error_t err); | ||
380 | |||
372 | #ifdef __cplusplus | 381 | #ifdef __cplusplus |
373 | } | 382 | } |
374 | #endif | 383 | #endif |