summaryrefslogtreecommitdiffstats
path: root/src/sbservices.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sbservices.c')
-rw-r--r--src/sbservices.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sbservices.c b/src/sbservices.c
index 2c17d8c..6b1a4d1 100644
--- a/src/sbservices.c
+++ b/src/sbservices.c
@@ -88,20 +88,20 @@ static sbservices_error_t sbservices_error(property_list_service_error_t err)
88 * Connects to the springboardservices service on the specified device. 88 * Connects to the springboardservices service on the specified device.
89 * 89 *
90 * @param device The device to connect to. 90 * @param device The device to connect to.
91 * @param port Destination port (usually given by lockdownd_start_service). 91 * @param service The service descriptor returned by lockdownd_start_service.
92 * @param client Pointer that will point to a newly allocated 92 * @param client Pointer that will point to a newly allocated
93 * sbservices_client_t upon successful return. 93 * sbservices_client_t upon successful return.
94 * 94 *
95 * @return SBSERVICES_E_SUCCESS on success, SBSERVICES_E_INVALID_ARG when 95 * @return SBSERVICES_E_SUCCESS on success, SBSERVICES_E_INVALID_ARG when
96 * client is NULL, or an SBSERVICES_E_* error code otherwise. 96 * client is NULL, or an SBSERVICES_E_* error code otherwise.
97 */ 97 */
98sbservices_error_t sbservices_client_new(idevice_t device, uint16_t port, sbservices_client_t *client) 98sbservices_error_t sbservices_client_new(idevice_t device, lockdownd_service_descriptor_t service, sbservices_client_t *client)
99{ 99{
100 if (!device) 100 if (!device)
101 return SBSERVICES_E_INVALID_ARG; 101 return SBSERVICES_E_INVALID_ARG;
102 102
103 property_list_service_client_t plistclient = NULL; 103 property_list_service_client_t plistclient = NULL;
104 sbservices_error_t err = sbservices_error(property_list_service_client_new(device, port, &plistclient)); 104 sbservices_error_t err = sbservices_error(property_list_service_client_new(device, service, &plistclient));
105 if (err != SBSERVICES_E_SUCCESS) { 105 if (err != SBSERVICES_E_SUCCESS) {
106 return err; 106 return err;
107 } 107 }