summaryrefslogtreecommitdiffstats
path: root/src/AFC.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2009-07-03 22:11:01 +0200
committerGravatar Matt Colyer2009-07-07 08:31:25 -0700
commit9990d53ba2ff4e92b1844beb001dcc9c47d30f3e (patch)
tree1ac137519294fc2be6eed870811a8047bf8ed1e4 /src/AFC.h
parent52d1beb6e43cc12ff57e648f1e5bdfadc4d36929 (diff)
downloadlibimobiledevice-9990d53ba2ff4e92b1844beb001dcc9c47d30f3e.tar.gz
libimobiledevice-9990d53ba2ff4e92b1844beb001dcc9c47d30f3e.tar.bz2
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).
Diffstat (limited to 'src/AFC.h')
-rw-r--r--src/AFC.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/AFC.h b/src/AFC.h
index 5827518..a9c33c3 100644
--- a/src/AFC.h
+++ b/src/AFC.h
@@ -55,16 +55,6 @@ struct iphone_afc_client_int {
55 GMutex *mutex; 55 GMutex *mutex;
56}; 56};
57 57
58struct iphone_afc_file_int {
59 uint32_t filehandle;
60 uint32_t blocks;
61 off_t size;
62 uint32_t mode;
63 uint32_t nlink;
64};
65
66
67
68enum { 58enum {
69 AFC_ERROR = 0x00000001, 59 AFC_ERROR = 0x00000001,
70 AFC_SUCCESS_RESPONSE = 0x00000002, 60 AFC_SUCCESS_RESPONSE = 0x00000002,
@@ -96,5 +86,4 @@ enum {
96 AFC_MAKE_LINK = 0x0000001C // MakeLink 86 AFC_MAKE_LINK = 0x0000001C // MakeLink
97}; 87};
98 88
99uint32_t iphone_afc_get_file_handle(iphone_afc_file_t file);
100static int afcerror_to_errno(int afcerror); 89static int afcerror_to_errno(int afcerror);