summaryrefslogtreecommitdiffstats
path: root/src/AFC.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/AFC.h')
-rw-r--r--src/AFC.h40
1 files changed, 27 insertions, 13 deletions
diff --git a/src/AFC.h b/src/AFC.h
index 5e4d17c..90b406a 100644
--- a/src/AFC.h
+++ b/src/AFC.h
@@ -58,20 +58,34 @@ struct iphone_afc_file_int {
58 58
59enum { 59enum {
60 AFC_ERROR = 0x00000001, 60 AFC_ERROR = 0x00000001,
61 AFC_GET_INFO = 0x0000000a,
62 AFC_GET_DEVINFO = 0x0000000b,
63 AFC_LIST_DIR = 0x00000003,
64 AFC_MAKE_DIR = 0x00000009,
65 AFC_DELETE = 0x00000008,
66 AFC_RENAME = 0x00000018,
67 AFC_SUCCESS_RESPONSE = 0x00000002, 61 AFC_SUCCESS_RESPONSE = 0x00000002,
68 AFC_FILE_OPEN = 0x0000000d, 62 AFC_LIST_DIR = 0x00000003, // ReadDir
69 AFC_FILE_CLOSE = 0x00000014, 63 // 0x00000004 // ReadFile
70 AFC_FILE_SEEK = 0x00000011, 64 // 0x00000005 // WriteFile
71 AFC_FILE_TRUNCATE = 0x00000015, 65 // 0x00000006 // WritePart
72 AFC_FILE_HANDLE = 0x0000000e, 66 AFC_TRUNCATE = 0x00000007, // Truncate
73 AFC_READ = 0x0000000f, 67 AFC_DELETE = 0x00000008, // RemovePath
74 AFC_WRITE = 0x00000010 68 AFC_MAKE_DIR = 0x00000009, // MakeDir
69 AFC_GET_INFO = 0x0000000a, // GetFileInfo
70 AFC_GET_DEVINFO = 0x0000000b, // GetDeviceInfo
71 // 0x0000000c // same as 5, but writes to temp file, then renames it.
72 AFC_FILE_OPEN = 0x0000000d, // FileRefOpen
73 AFC_FILE_HANDLE = 0x0000000e, // _unknownPacket
74 AFC_READ = 0x0000000f, // FileRefRead
75 AFC_WRITE = 0x00000010, // FileRefWrite
76 AFC_FILE_SEEK = 0x00000011, // FileRefSeek
77 AFC_FILE_TELL = 0x00000012, // FileRefTell
78 // 0x00000013 // _unknownPacket
79 AFC_FILE_CLOSE = 0x00000014, // FileRefClose
80 AFC_FILE_TRUNCATE = 0x00000015, // FileRefSetFileSize (ftruncate)
81 // 0x00000016 // SetFatalError
82 // 0x00000017 // SetConnectionOptions
83 AFC_RENAME = 0x00000018, // RenamePath
84 // 0x00000019 // SetFSBlockSize (0x800000)
85 // 0x0000001A // SetBlockSize (0x800000)
86 AFC_FILE_LOCK = 0x0000001B, // FileRefLock
87 AFC_MAKE_LINK = 0x0000001C // MakeLink
75}; 88};
76 89
90
77uint32_t iphone_afc_get_file_handle(iphone_afc_file_t file); 91uint32_t iphone_afc_get_file_handle(iphone_afc_file_t file);