diff options
| author | 2013-09-16 02:15:56 +0200 | |
|---|---|---|
| committer | 2013-09-16 02:15:56 +0200 | |
| commit | c7c49ae95ca05750fa5609d39c28b148f93dbe15 (patch) | |
| tree | a02d2cbe7fd88aa834899120786c5831d0cb23aa | |
| parent | b40ef7132534c8d625a0af108f2fe406e7c7041f (diff) | |
| download | libimobiledevice-c7c49ae95ca05750fa5609d39c28b148f93dbe15.tar.gz libimobiledevice-c7c49ae95ca05750fa5609d39c28b148f93dbe15.tar.bz2 | |
afc: fix some return types (afc_error_t vs. idevice_error_t)
| -rw-r--r-- | src/afc.c | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -105,7 +105,7 @@ afc_error_t afc_client_new_with_service_client(service_client_t service_client, | |||
| 105 | * @param client Pointer that will be set to a newly allocated afc_client_t | 105 | * @param client Pointer that will be set to a newly allocated afc_client_t |
| 106 | * upon successful return. | 106 | * upon successful return. |
| 107 | * | 107 | * |
| 108 | * @return AFC_E_SUCCESS on success, AFC_E_INVALID_ARG if device or port is | 108 | * @return AFC_E_SUCCESS on success, AFC_E_INVALID_ARG if device or service is |
| 109 | * invalid, AFC_E_MUX_ERROR if the connection cannot be established, | 109 | * invalid, AFC_E_MUX_ERROR if the connection cannot be established, |
| 110 | * or AFC_E_NO_MEM if there is a memory allocation problem. | 110 | * or AFC_E_NO_MEM if there is a memory allocation problem. |
| 111 | */ | 111 | */ |
| @@ -781,7 +781,7 @@ afc_error_t afc_get_file_info(afc_client_t client, const char *path, char ***inf | |||
| 781 | * | 781 | * |
| 782 | * @return AFC_E_SUCCESS on success or an AFC_E_* error value. | 782 | * @return AFC_E_SUCCESS on success or an AFC_E_* error value. |
| 783 | */ | 783 | */ |
| 784 | idevice_error_t | 784 | afc_error_t |
| 785 | afc_file_open(afc_client_t client, const char *filename, | 785 | afc_file_open(afc_client_t client, const char *filename, |
| 786 | afc_file_mode_t file_mode, uint64_t *handle) | 786 | afc_file_mode_t file_mode, uint64_t *handle) |
| 787 | { | 787 | { |
| @@ -841,7 +841,7 @@ afc_file_open(afc_client_t client, const char *filename, | |||
| 841 | * | 841 | * |
| 842 | * @return AFC_E_SUCCESS on success or an AFC_E_* error value. | 842 | * @return AFC_E_SUCCESS on success or an AFC_E_* error value. |
| 843 | */ | 843 | */ |
| 844 | idevice_error_t | 844 | afc_error_t |
| 845 | afc_file_read(afc_client_t client, uint64_t handle, char *data, uint32_t length, uint32_t *bytes_read) | 845 | afc_file_read(afc_client_t client, uint64_t handle, char *data, uint32_t length, uint32_t *bytes_read) |
| 846 | { | 846 | { |
| 847 | char *input = NULL; | 847 | char *input = NULL; |
| @@ -915,7 +915,7 @@ afc_file_read(afc_client_t client, uint64_t handle, char *data, uint32_t length, | |||
| 915 | * | 915 | * |
| 916 | * @return AFC_E_SUCCESS on success or an AFC_E_* error value. | 916 | * @return AFC_E_SUCCESS on success or an AFC_E_* error value. |
| 917 | */ | 917 | */ |
| 918 | idevice_error_t | 918 | afc_error_t |
| 919 | afc_file_write(afc_client_t client, uint64_t handle, const char *data, uint32_t length, uint32_t *bytes_written) | 919 | afc_file_write(afc_client_t client, uint64_t handle, const char *data, uint32_t length, uint32_t *bytes_written) |
| 920 | { | 920 | { |
| 921 | char *acknowledgement = NULL; | 921 | char *acknowledgement = NULL; |
