summaryrefslogtreecommitdiffstats
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
parentb40ef7132534c8d625a0af108f2fe406e7c7041f (diff)
downloadlibimobiledevice-c7c49ae95ca05750fa5609d39c28b148f93dbe15.tar.gz
libimobiledevice-c7c49ae95ca05750fa5609d39c28b148f93dbe15.tar.bz2
afc: fix some return types (afc_error_t vs. idevice_error_t)
-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,
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 */
784idevice_error_t 784afc_error_t
785afc_file_open(afc_client_t client, const char *filename, 785afc_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 */
844idevice_error_t 844afc_error_t
845afc_file_read(afc_client_t client, uint64_t handle, char *data, uint32_t length, uint32_t *bytes_read) 845afc_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 */
918idevice_error_t 918afc_error_t
919afc_file_write(afc_client_t client, uint64_t handle, const char *data, uint32_t length, uint32_t *bytes_written) 919afc_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;