summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2019-01-18 20:43:47 +0100
committerGravatar Nikias Bassen2019-01-18 20:43:47 +0100
commitc75605d862cd1c312494f6c715246febc26b2e05 (patch)
tree65310c287d9f996f79bb6b69ca47564b090e43a5 /include
parent9db5747cd823b1f59794f81560a4af22a031f5c9 (diff)
downloadlibusbmuxd-c75605d862cd1c312494f6c715246febc26b2e05.tar.gz
libusbmuxd-c75605d862cd1c312494f6c715246febc26b2e05.tar.bz2
Return meaningful error codes from usbmuxd_connect()
Diffstat (limited to 'include')
-rw-r--r--include/usbmuxd.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/usbmuxd.h b/include/usbmuxd.h
index 0cb7cab..6d035a2 100644
--- a/include/usbmuxd.h
+++ b/include/usbmuxd.h
@@ -170,7 +170,8 @@ int usbmuxd_get_device(const char *udid, usbmuxd_device_info_t *device, enum usb
* @param tcp_port TCP port number on device, in range 0-65535.
* common values are 62078 for lockdown, and 22 for SSH.
*
- * @return socket file descriptor of the connection, or -1 on error
+ * @return socket file descriptor of the connection, or a negative errno
+ * value on error.
*/
int usbmuxd_connect(const uint32_t handle, const unsigned short tcp_port);