From 9990d53ba2ff4e92b1844beb001dcc9c47d30f3e Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Fri, 3 Jul 2009 22:11:01 +0200 Subject: AFC cleanup: remove iphone_afc_file_* and use handles instead. Removed afc_get_file_attr because this function has to go into the program (like ifuse); afc_get_file_info has to be used instead. Modified dispatch_AFC_Packet so that the real buffer size has to be specified (instead of length-1). --- dev/afccheck.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dev/afccheck.c') diff --git a/dev/afccheck.c b/dev/afccheck.c index 2f7d92c..965981b 100644 --- a/dev/afccheck.c +++ b/dev/afccheck.c @@ -50,13 +50,13 @@ void check_afc(gpointer data) } //now writes buffer on iphone - iphone_afc_file_t file = NULL; + uint64_t file = 0; char path[50]; sprintf(path, "/Buf%i", ((param *) data)->id); iphone_afc_open_file(((param *) data)->afc, path, AFC_FOPEN_RW, &file); iphone_afc_write_file(((param *) data)->afc, file, (char *) buf, buffersize, &bytes); iphone_afc_close_file(((param *) data)->afc, file); - file = NULL; + file = 0; if (bytes != buffersize) printf("Write operation failed\n"); -- cgit v1.1-32-gdbae