summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2009-11-28 04:33:24 +0100
committerGravatar Matt Colyer2009-11-30 21:02:41 -0800
commit7adc81dddd764b0ef76fefd73852b835d3211b9b (patch)
tree7125966103693842686ff71922dce4459e7c6251 /include
parent12a44afce569c2cdf31018c259745e09b13bffc3 (diff)
downloadlibimobiledevice-7adc81dddd764b0ef76fefd73852b835d3211b9b.tar.gz
libimobiledevice-7adc81dddd764b0ef76fefd73852b835d3211b9b.tar.bz2
uint32_t type fixes for afc_file_read/afc_file_write
This patch also adapts all corresponding internal functions. The buffer lengths are now consistently handled as uint32_t.
Diffstat (limited to 'include')
-rw-r--r--include/libiphone/afc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libiphone/afc.h b/include/libiphone/afc.h
index 1c714c9..94eb02e 100644
--- a/include/libiphone/afc.h
+++ b/include/libiphone/afc.h
@@ -95,8 +95,8 @@ afc_error_t afc_get_file_info(afc_client_t client, const char *filename, char **
afc_error_t afc_file_open(afc_client_t client, const char *filename, afc_file_mode_t file_mode, uint64_t *handle);
afc_error_t afc_file_close(afc_client_t client, uint64_t handle);
afc_error_t afc_file_lock(afc_client_t client, uint64_t handle, afc_lock_op_t operation);
-afc_error_t afc_file_read(afc_client_t client, uint64_t handle, char *data, int length, uint32_t *bytes);
-afc_error_t afc_file_write(afc_client_t client, uint64_t handle, const char *data, int length, uint32_t *bytes);
+afc_error_t afc_file_read(afc_client_t client, uint64_t handle, char *data, uint32_t length, uint32_t *bytes_read);
+afc_error_t afc_file_write(afc_client_t client, uint64_t handle, const char *data, uint32_t length, uint32_t *bytes_written);
afc_error_t afc_file_seek(afc_client_t client, uint64_t handle, int64_t offset, int whence);
afc_error_t afc_file_tell(afc_client_t client, uint64_t handle, uint64_t *position);
afc_error_t afc_file_truncate(afc_client_t client, uint64_t handle, uint64_t newsize);