diff options
| author | 2013-02-26 20:01:46 +0100 | |
|---|---|---|
| committer | 2013-02-27 16:18:47 +0100 | |
| commit | 1563dc9a26010a3121182f6a33164298c2fe03ab (patch) | |
| tree | a5218b87d19873183fc6861314e15e7dfd038912 | |
| parent | c6c36ba16e57e6b5694b5309d1ded3d7cff563ca (diff) | |
| download | libimobiledevice-1563dc9a26010a3121182f6a33164298c2fe03ab.tar.gz libimobiledevice-1563dc9a26010a3121182f6a33164298c2fe03ab.tar.bz2 | |
afc: List afc_client_new_with_service_client() in private header
| -rw-r--r-- | src/afc.c | 8 | ||||
| -rw-r--r-- | src/afc.h | 2 | ||||
| -rw-r--r-- | src/house_arrest.c | 2 |
3 files changed, 7 insertions, 5 deletions
| @@ -69,7 +69,7 @@ static void afc_unlock(afc_client_t client) | |||
| 69 | * Makes a connection to the AFC service on the device using the given | 69 | * Makes a connection to the AFC service on the device using the given |
| 70 | * connection. | 70 | * connection. |
| 71 | * | 71 | * |
| 72 | * @param serviceclient A connected service client | 72 | * @param service_client A connected service client |
| 73 | * @param client Pointer that will be set to a newly allocated afc_client_t | 73 | * @param client Pointer that will be set to a newly allocated afc_client_t |
| 74 | * upon successful return. | 74 | * upon successful return. |
| 75 | * | 75 | * |
| @@ -77,13 +77,13 @@ static void afc_unlock(afc_client_t client) | |||
| 77 | * invalid, or AFC_E_NO_MEM if there is a memory allocation problem. | 77 | * invalid, or AFC_E_NO_MEM if there is a memory allocation problem. |
| 78 | */ | 78 | */ |
| 79 | 79 | ||
| 80 | afc_error_t afc_client_new_with_service_client(service_client_t serviceclient, afc_client_t *client) | 80 | afc_error_t afc_client_new_with_service_client(service_client_t service_client, afc_client_t *client) |
| 81 | { | 81 | { |
| 82 | if (!serviceclient) | 82 | if (!service_client) |
| 83 | return AFC_E_INVALID_ARG; | 83 | return AFC_E_INVALID_ARG; |
| 84 | 84 | ||
| 85 | afc_client_t client_loc = (afc_client_t) malloc(sizeof(struct afc_client_private)); | 85 | afc_client_t client_loc = (afc_client_t) malloc(sizeof(struct afc_client_private)); |
| 86 | client_loc->parent = serviceclient; | 86 | client_loc->parent = service_client; |
| 87 | client_loc->free_parent = 0; | 87 | client_loc->free_parent = 0; |
| 88 | 88 | ||
| 89 | /* allocate a packet */ | 89 | /* allocate a packet */ |
| @@ -103,4 +103,6 @@ enum { | |||
| 103 | AFC_OP_SET_FILE_TIME = 0x0000001E /* set st_mtime */ | 103 | AFC_OP_SET_FILE_TIME = 0x0000001E /* set st_mtime */ |
| 104 | }; | 104 | }; |
| 105 | 105 | ||
| 106 | afc_error_t afc_client_new_with_service_client(service_client_t service_client, afc_client_t *client); | ||
| 107 | |||
| 106 | #endif | 108 | #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 | |||
| 235 | * @return AFC_E_SUCCESS if the afc client was successfully created, | 235 | * @return AFC_E_SUCCESS if the afc client was successfully created, |
| 236 | * AFC_E_INVALID_ARG if client is invalid or was already used to create | 236 | * AFC_E_INVALID_ARG if client is invalid or was already used to create |
| 237 | * an afc client, or an AFC_E_* error code returned by | 237 | * an afc client, or an AFC_E_* error code returned by |
| 238 | * afc_client_new_from_connection(). | 238 | * afc_client_new_with_service_client(). |
| 239 | */ | 239 | */ |
| 240 | afc_error_t afc_client_new_from_house_arrest_client(house_arrest_client_t client, afc_client_t *afc_client) | 240 | afc_error_t afc_client_new_from_house_arrest_client(house_arrest_client_t client, afc_client_t *afc_client) |
| 241 | { | 241 | { |
