summaryrefslogtreecommitdiffstats
path: root/include/libimobiledevice/service.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2022-04-12 02:56:18 +0200
committerGravatar Nikias Bassen2022-04-12 02:56:18 +0200
commit854ab9a5d9d04fb884459c5092f6620faa99673b (patch)
treec13e8ac64084e15cfabb09682dd19528dfa90b47 /include/libimobiledevice/service.h
parentdca3cf8c5bd804bf563fd43a6cdfdb1a5b85d490 (diff)
downloadlibimobiledevice-854ab9a5d9d04fb884459c5092f6620faa99673b.tar.gz
libimobiledevice-854ab9a5d9d04fb884459c5092f6620faa99673b.tar.bz2
Add property_list_client_get_service_client() and service_get_connection() functions
This allows for custom service implementations to easier switch to non-plist communication after the service has been started.
Diffstat (limited to 'include/libimobiledevice/service.h')
-rw-r--r--include/libimobiledevice/service.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/libimobiledevice/service.h b/include/libimobiledevice/service.h
index 6842054..28b6db6 100644
--- a/include/libimobiledevice/service.h
+++ b/include/libimobiledevice/service.h
@@ -184,6 +184,16 @@ service_error_t service_disable_ssl(service_client_t client);
*/
service_error_t service_disable_bypass_ssl(service_client_t client, uint8_t sslBypass);
+/**
+ * Return a handle to the parent #idevice_connection_t of the given service client.
+ *
+ * @param client The service client
+ * @param connection Pointer to be assigned to the #idevice_connection_t.
+ *
+ * @return SERVICE_E_SUCCESS on success,
+ * SERVICE_E_INVALID_ARG if one or more of the arguments are invalid.
+ */
+service_error_t service_get_connection(service_client_t client, idevice_connection_t *connection);
#ifdef __cplusplus
}
#endif