diff options
| author | 2009-07-03 22:11:01 +0200 | |
|---|---|---|
| committer | 2009-07-07 08:31:25 -0700 | |
| commit | 9990d53ba2ff4e92b1844beb001dcc9c47d30f3e (patch) | |
| tree | 1ac137519294fc2be6eed870811a8047bf8ed1e4 /src/AFC.h | |
| parent | 52d1beb6e43cc12ff57e648f1e5bdfadc4d36929 (diff) | |
| download | libimobiledevice-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.h | 11 |
1 files changed, 0 insertions, 11 deletions
| @@ -55,16 +55,6 @@ struct iphone_afc_client_int { | |||
| 55 | GMutex *mutex; | 55 | GMutex *mutex; |
| 56 | }; | 56 | }; |
| 57 | 57 | ||
| 58 | struct 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 | |||
| 68 | enum { | 58 | enum { |
| 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 | ||
| 99 | uint32_t iphone_afc_get_file_handle(iphone_afc_file_t file); | ||
| 100 | static int afcerror_to_errno(int afcerror); | 89 | static int afcerror_to_errno(int afcerror); |
