summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-09-16 02:15:56 +0200
committerGravatar Nikias Bassen2013-09-16 02:15:56 +0200
commitc7c49ae95ca05750fa5609d39c28b148f93dbe15 (patch)
treea02d2cbe7fd88aa834899120786c5831d0cb23aa /src
parentb40ef7132534c8d625a0af108f2fe406e7c7041f (diff)
downloadlibimobiledevice-c7c49ae95ca05750fa5609d39c28b148f93dbe15.tar.gz
libimobiledevice-c7c49ae95ca05750fa5609d39c28b148f93dbe15.tar.bz2
afc: fix some return types (afc_error_t vs. idevice_error_t)
Diffstat (limited to 'src')
-rw-r--r--src/afc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/afc.c b/src/afc.c
index a4cc17a..fc6ce73 100644
--- a/src/afc.c
+++ b/src/afc.c
@@ -105,7 +105,7 @@ afc_error_t afc_client_new_with_service_client(service_client_t service_client,
* @param client Pointer that will be set to a newly allocated afc_client_t
* upon successful return.
*
- * @return AFC_E_SUCCESS on success, AFC_E_INVALID_ARG if device or port is
+ * @return AFC_E_SUCCESS on success, AFC_E_INVALID_ARG if device or service is
* invalid, AFC_E_MUX_ERROR if the connection cannot be established,
* or AFC_E_NO_MEM if there is a memory allocation problem.
*/
@@ -781,7 +781,7 @@ afc_error_t afc_get_file_info(afc_client_t client, const char *path, char ***inf
*
* @return AFC_E_SUCCESS on success or an AFC_E_* error value.
*/
-idevice_error_t
+afc_error_t
afc_file_open(afc_client_t client, const char *filename,
afc_file_mode_t file_mode, uint64_t *handle)
{
@@ -841,7 +841,7 @@ afc_file_open(afc_client_t client, const char *filename,
*
* @return AFC_E_SUCCESS on success or an AFC_E_* error value.
*/
-idevice_error_t
+afc_error_t
afc_file_read(afc_client_t client, uint64_t handle, char *data, uint32_t length, uint32_t *bytes_read)
{
char *input = NULL;
@@ -915,7 +915,7 @@ afc_file_read(afc_client_t client, uint64_t handle, char *data, uint32_t length,
*
* @return AFC_E_SUCCESS on success or an AFC_E_* error value.
*/
-idevice_error_t
+afc_error_t
afc_file_write(afc_client_t client, uint64_t handle, const char *data, uint32_t length, uint32_t *bytes_written)
{
char *acknowledgement = NULL;