diff options
author | Nikias Bassen | 2021-10-11 01:25:13 +0300 |
---|---|---|
committer | Nikias Bassen | 2021-10-12 03:17:07 +0300 |
commit | fa8bfb65c70edd4d2617fbbf970302beb9a4ced2 (patch) | |
tree | 08bf90044dcda6073368e7f62d3f629984e1bb90 /include | |
parent | b3d35fbcf7a1ac669c2e80fbd58920941a5d4c0c (diff) | |
download | libimobiledevice-fa8bfb65c70edd4d2617fbbf970302beb9a4ced2.tar.gz libimobiledevice-fa8bfb65c70edd4d2617fbbf970302beb9a4ced2.tar.bz2 |
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"
Diffstat (limited to 'include')
-rw-r--r-- | include/libimobiledevice/libimobiledevice.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; |