summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2010-01-13 01:13:36 +0100
committerGravatar Martin Szulecki2010-01-13 01:25:31 +0100
commitfae09a370b6d2a3b8b2d6fbfe8895736a20079a6 (patch)
treeadd09c0ee02eae89be49b6ffa94ed300cbae7159 /src
parent1c0b59ff3b993adeb0bcbf87f345ce5db6e0deb2 (diff)
downloadlibimobiledevice-fae09a370b6d2a3b8b2d6fbfe8895736a20079a6.tar.gz
libimobiledevice-fae09a370b6d2a3b8b2d6fbfe8895736a20079a6.tar.bz2
sbservices: use correct type for port parameter and rename it
Diffstat (limited to 'src')
-rw-r--r--src/SBServices.c6
1 files changed, 3 insertions, 3 deletions
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)
79 * Creates a new sbservices client. 79 * Creates a new sbservices client.
80 * 80 *
81 * @param device The device to connect to. 81 * @param device The device to connect to.
82 * @param dst_port The port on device to connect to. 82 * @param port The port on device to connect to.
83 * @param client Pointer that will point to a newly allocated 83 * @param client Pointer that will point to a newly allocated
84 * sbservices_client_t upon successful return. 84 * sbservices_client_t upon successful return.
85 * 85 *
86 * @return SBSERVICES_E_SUCCESS on success, SBSERVICES_E_INVALID_ARG when 86 * @return SBSERVICES_E_SUCCESS on success, SBSERVICES_E_INVALID_ARG when
87 * client is NULL, or an SBSERVICES_E_* error code otherwise. 87 * client is NULL, or an SBSERVICES_E_* error code otherwise.
88 */ 88 */
89sbservices_error_t sbservices_client_new(iphone_device_t device, int dst_port, sbservices_client_t *client) 89sbservices_error_t sbservices_client_new(iphone_device_t device, uint16_t port, sbservices_client_t *client)
90{ 90{
91 /* makes sure thread environment is available */ 91 /* makes sure thread environment is available */
92 if (!g_thread_supported()) 92 if (!g_thread_supported())
@@ -96,7 +96,7 @@ sbservices_error_t sbservices_client_new(iphone_device_t device, int dst_port, s
96 return SBSERVICES_E_INVALID_ARG; 96 return SBSERVICES_E_INVALID_ARG;
97 97
98 property_list_service_client_t plistclient = NULL; 98 property_list_service_client_t plistclient = NULL;
99 sbservices_error_t err = sbservices_error(property_list_service_client_new(device, dst_port, &plistclient)); 99 sbservices_error_t err = sbservices_error(property_list_service_client_new(device, port, &plistclient));
100 if (err != SBSERVICES_E_SUCCESS) { 100 if (err != SBSERVICES_E_SUCCESS) {
101 return err; 101 return err;
102 } 102 }