diff options
| author | 2008-08-10 17:24:32 -0700 | |
|---|---|---|
| committer | 2008-08-10 17:24:32 -0700 | |
| commit | 020d7c23b17956098379140f1f0047ae8e78df1b (patch) | |
| tree | 310d14b340309ba79ed5b8c15fe0e39d99c2f207 /src/AFC.h | |
| parent | 4c3f86499f8dfe344fb5f92b805e8c090290a79e (diff) | |
| download | libimobiledevice-020d7c23b17956098379140f1f0047ae8e78df1b.tar.gz libimobiledevice-020d7c23b17956098379140f1f0047ae8e78df1b.tar.bz2 | |
Adds seeking, directory creation and improves file writing. Also various other cleanups.
Implements creating directories as well as writing and deleting files in iFuse.
Signed-off-by: Matthew Colyer <mcolyer@mcolyer-laptop.(none)>
Diffstat (limited to 'src/AFC.h')
| -rw-r--r-- | src/AFC.h | 13 |
1 files changed, 11 insertions, 2 deletions
| @@ -56,8 +56,14 @@ typedef struct __AFCToken { | |||
| 56 | 56 | ||
| 57 | 57 | ||
| 58 | enum { | 58 | enum { |
| 59 | AFC_FILE_READ = 0x00000002, | 59 | AFC_FILE_READ = 0x00000002, // seems to be able to read and write files |
| 60 | AFC_FILE_WRITE = 0x00000003 | 60 | AFC_FILE_WRITE = 0x00000003, // writes and creates a file, blanks it out, etc. |
| 61 | AFC_FILE_RW = 0x00000005, // seems to do the same as 2. Might even create the file. | ||
| 62 | AFC_FILE_OP4 = 0x00000004, // no idea -- appears to be "write" -- clears file beforehand like 3 | ||
| 63 | AFC_FILE_OP6 = 0x00000006, // no idea yet -- appears to be the same as 5. | ||
| 64 | AFC_FILE_OP1 = 0x00000001, // no idea juuust yet... probably read. | ||
| 65 | AFC_FILE_OP0 = 0x00000000, | ||
| 66 | AFC_FILE_OP10 = 0x0000000a | ||
| 61 | }; | 67 | }; |
| 62 | 68 | ||
| 63 | enum { | 69 | enum { |
| @@ -65,11 +71,14 @@ enum { | |||
| 65 | AFC_GET_INFO = 0x0000000a, | 71 | AFC_GET_INFO = 0x0000000a, |
| 66 | AFC_GET_DEVINFO = 0x0000000b, | 72 | AFC_GET_DEVINFO = 0x0000000b, |
| 67 | AFC_LIST_DIR = 0x00000003, | 73 | AFC_LIST_DIR = 0x00000003, |
| 74 | AFC_MAKE_DIR = 0x00000009, | ||
| 68 | AFC_DELETE = 0x00000008, | 75 | AFC_DELETE = 0x00000008, |
| 69 | AFC_RENAME = 0x00000018, | 76 | AFC_RENAME = 0x00000018, |
| 70 | AFC_SUCCESS_RESPONSE = 0x00000002, | 77 | AFC_SUCCESS_RESPONSE = 0x00000002, |
| 71 | AFC_FILE_OPEN = 0x0000000d, | 78 | AFC_FILE_OPEN = 0x0000000d, |
| 72 | AFC_FILE_CLOSE = 0x00000014, | 79 | AFC_FILE_CLOSE = 0x00000014, |
| 80 | AFC_FILE_SEEK = 0x00000011, | ||
| 81 | AFC_FILE_TRUNCATE = 0x00000015, | ||
| 73 | AFC_FILE_HANDLE = 0x0000000e, | 82 | AFC_FILE_HANDLE = 0x0000000e, |
| 74 | AFC_READ = 0x0000000f, | 83 | AFC_READ = 0x0000000f, |
| 75 | AFC_WRITE = 0x00000010 | 84 | AFC_WRITE = 0x00000010 |
