From 1563dc9a26010a3121182f6a33164298c2fe03ab Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Tue, 26 Feb 2013 20:01:46 +0100 Subject: afc: List afc_client_new_with_service_client() in private header --- src/afc.c | 8 ++++---- src/afc.h | 2 ++ src/house_arrest.c | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/afc.c b/src/afc.c index 83ee2ca..d61032d 100644 --- a/src/afc.c +++ b/src/afc.c @@ -69,7 +69,7 @@ static void afc_unlock(afc_client_t client) * Makes a connection to the AFC service on the device using the given * connection. * - * @param serviceclient A connected service client + * @param service_client A connected service client * @param client Pointer that will be set to a newly allocated afc_client_t * upon successful return. * @@ -77,13 +77,13 @@ static void afc_unlock(afc_client_t client) * invalid, or AFC_E_NO_MEM if there is a memory allocation problem. */ -afc_error_t afc_client_new_with_service_client(service_client_t serviceclient, afc_client_t *client) +afc_error_t afc_client_new_with_service_client(service_client_t service_client, afc_client_t *client) { - if (!serviceclient) + if (!service_client) return AFC_E_INVALID_ARG; afc_client_t client_loc = (afc_client_t) malloc(sizeof(struct afc_client_private)); - client_loc->parent = serviceclient; + client_loc->parent = service_client; client_loc->free_parent = 0; /* allocate a packet */ diff --git a/src/afc.h b/src/afc.h index bdb1f16..33662f2 100644 --- a/src/afc.h +++ b/src/afc.h @@ -103,4 +103,6 @@ enum { AFC_OP_SET_FILE_TIME = 0x0000001E /* set st_mtime */ }; +afc_error_t afc_client_new_with_service_client(service_client_t service_client, afc_client_t *client); + #endif diff --git a/src/house_arrest.c b/src/house_arrest.c index ec76346..b3dbbf8 100644 --- a/src/house_arrest.c +++ b/src/house_arrest.c @@ -235,7 +235,7 @@ house_arrest_error_t house_arrest_get_result(house_arrest_client_t client, plist * @return AFC_E_SUCCESS if the afc client was successfully created, * AFC_E_INVALID_ARG if client is invalid or was already used to create * an afc client, or an AFC_E_* error code returned by - * afc_client_new_from_connection(). + * afc_client_new_with_service_client(). */ afc_error_t afc_client_new_from_house_arrest_client(house_arrest_client_t client, afc_client_t *afc_client) { -- cgit v1.1-32-gdbae