summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/libiphone/sbservices.h2
-rw-r--r--src/SBServices.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/include/libiphone/sbservices.h b/include/libiphone/sbservices.h
index 6ea8189..3e4accb 100644
--- a/include/libiphone/sbservices.h
+++ b/include/libiphone/sbservices.h
@@ -43,7 +43,7 @@ struct sbservices_client_int;
typedef struct sbservices_client_int *sbservices_client_t;
/* Interface */
-sbservices_error_t sbservices_client_new(iphone_device_t device, int dst_port, sbservices_client_t *client);
+sbservices_error_t sbservices_client_new(iphone_device_t device, uint16_t port, sbservices_client_t *client);
sbservices_error_t sbservices_client_free(sbservices_client_t client);
sbservices_error_t sbservices_get_icon_state(sbservices_client_t client, plist_t *state);
sbservices_error_t sbservices_set_icon_state(sbservices_client_t client, plist_t newstate);
diff --git a/src/SBServices.c b/src/SBServices.c
index 7b6d3c8..69c7425 100644
--- a/src/SBServices.c
+++ b/src/SBServices.c
@@ -79,14 +79,14 @@ static sbservices_error_t sbservices_error(property_list_service_error_t err)
* Creates a new sbservices client.
*
* @param device The device to connect to.
- * @param dst_port The port on device to connect to.
+ * @param port The port on device to connect to.
* @param client Pointer that will point to a newly allocated
* sbservices_client_t upon successful return.
*
* @return SBSERVICES_E_SUCCESS on success, SBSERVICES_E_INVALID_ARG when
* client is NULL, or an SBSERVICES_E_* error code otherwise.
*/
-sbservices_error_t sbservices_client_new(iphone_device_t device, int dst_port, sbservices_client_t *client)
+sbservices_error_t sbservices_client_new(iphone_device_t device, uint16_t port, sbservices_client_t *client)
{
/* makes sure thread environment is available */
if (!g_thread_supported())
@@ -96,7 +96,7 @@ sbservices_error_t sbservices_client_new(iphone_device_t device, int dst_port, s
return SBSERVICES_E_INVALID_ARG;
property_list_service_client_t plistclient = NULL;
- sbservices_error_t err = sbservices_error(property_list_service_client_new(device, dst_port, &plistclient));
+ sbservices_error_t err = sbservices_error(property_list_service_client_new(device, port, &plistclient));
if (err != SBSERVICES_E_SUCCESS) {
return err;
}