From fa8bfb65c70edd4d2617fbbf970302beb9a4ced2 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Mon, 11 Oct 2021 01:25:13 +0300 Subject: idevice: Add IDEVICE_E_CONNREFUSED and have idevice_connect() return meaningful error codes This allows clients to properly detect that a connection to the requested port failed because it is not open on the device, instead of just returning an "unknown error" --- include/libimobiledevice/libimobiledevice.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/libimobiledevice') diff --git a/include/libimobiledevice/libimobiledevice.h b/include/libimobiledevice/libimobiledevice.h index e0aa518..40edd71 100644 --- a/include/libimobiledevice/libimobiledevice.h +++ b/include/libimobiledevice/libimobiledevice.h @@ -42,6 +42,7 @@ typedef enum { IDEVICE_E_UNKNOWN_ERROR = -2, IDEVICE_E_NO_DEVICE = -3, IDEVICE_E_NOT_ENOUGH_DATA = -4, + IDEVICE_E_CONNREFUSED = -5, IDEVICE_E_SSL_ERROR = -6, IDEVICE_E_TIMEOUT = -7 } idevice_error_t; -- cgit v1.1-32-gdbae