diff options
author | Nikias Bassen | 2010-01-13 01:13:36 +0100 |
---|---|---|
committer | Martin Szulecki | 2010-01-13 01:25:31 +0100 |
commit | fae09a370b6d2a3b8b2d6fbfe8895736a20079a6 (patch) | |
tree | add09c0ee02eae89be49b6ffa94ed300cbae7159 | |
parent | 1c0b59ff3b993adeb0bcbf87f345ce5db6e0deb2 (diff) | |
download | libimobiledevice-fae09a370b6d2a3b8b2d6fbfe8895736a20079a6.tar.gz libimobiledevice-fae09a370b6d2a3b8b2d6fbfe8895736a20079a6.tar.bz2 |
sbservices: use correct type for port parameter and rename it
-rw-r--r-- | include/libiphone/sbservices.h | 2 | ||||
-rw-r--r-- | src/SBServices.c | 6 |
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; } |