diff options
author | BALATON Zoltan | 2015-09-23 02:19:27 +0200 |
---|---|---|
committer | BALATON Zoltan | 2016-04-01 22:53:13 +0200 |
commit | 692f7c9de72ca7fcaba51659972270d445751438 (patch) | |
tree | cc03556a0e4b39638885c2f8a602a9258494dfaa /include/libimobiledevice | |
parent | 15173c59a00a8e9c154bd6787e35c243c383160e (diff) | |
download | libimobiledevice-692f7c9de72ca7fcaba51659972270d445751438.tar.gz libimobiledevice-692f7c9de72ca7fcaba51659972270d445751438.tar.bz2 |
Add new function to get the underlying file descriptor of an idevice connection
Diffstat (limited to 'include/libimobiledevice')
-rw-r--r-- | include/libimobiledevice/libimobiledevice.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/libimobiledevice/libimobiledevice.h b/include/libimobiledevice/libimobiledevice.h index 016cadb..b125adf 100644 --- a/include/libimobiledevice/libimobiledevice.h +++ b/include/libimobiledevice/libimobiledevice.h @@ -239,6 +239,16 @@ idevice_error_t idevice_connection_enable_ssl(idevice_connection_t connection); */ idevice_error_t idevice_connection_disable_ssl(idevice_connection_t connection); +/** + * Get the underlying file descriptor for a connection + * + * @param connection The connection to get fd of + * @param fd Pointer to an int where the fd is stored + * + * @return IDEVICE_E_SUCCESS if ok, otherwise an error code. + */ +idevice_error_t idevice_connection_get_fd(idevice_connection_t connection, int *fd); + /* misc */ /** |