summaryrefslogtreecommitdiffstats
path: root/include/libimobiledevice
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2019-11-08 00:53:51 +0100
committerGravatar Nikias Bassen2019-11-08 00:53:51 +0100
commitfe3ef93359d9a1105b920d4a7a342706bd3b32c0 (patch)
tree179dafd88a76020c31c2aa1f2030593ca2a882a9 /include/libimobiledevice
parent6a73100414f66d12287105a322529c488f32182e (diff)
downloadlibimobiledevice-fe3ef93359d9a1105b920d4a7a342706bd3b32c0.tar.gz
libimobiledevice-fe3ef93359d9a1105b920d4a7a342706bd3b32c0.tar.bz2
Add new function lockdown_strerror() to get a readable description of a lockdownd_error_t
Diffstat (limited to 'include/libimobiledevice')
-rw-r--r--include/libimobiledevice/lockdown.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/libimobiledevice/lockdown.h b/include/libimobiledevice/lockdown.h
index b5c126c..d0ab037 100644
--- a/include/libimobiledevice/lockdown.h
+++ b/include/libimobiledevice/lockdown.h
@@ -464,6 +464,15 @@ lockdownd_error_t lockdownd_data_classes_free(char **classes);
*/
lockdownd_error_t lockdownd_service_descriptor_free(lockdownd_service_descriptor_t service);
+/**
+ * Gets a readable error string for a given lockdown error code.
+ *
+ * @params err A lockdownd error code
+ *
+ * @returns A readable error string
+ */
+const char* lockdownd_strerror(lockdownd_error_t err);
+
#ifdef __cplusplus
}
#endif