diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/libiphone/libiphone.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/include/libiphone/libiphone.h b/include/libiphone/libiphone.h index 36b1512..a45319f 100644 --- a/include/libiphone/libiphone.h +++ b/include/libiphone/libiphone.h | |||
| @@ -54,14 +54,12 @@ extern "C" { | |||
| 54 | typedef int16_t iphone_error_t; | 54 | typedef int16_t iphone_error_t; |
| 55 | 55 | ||
| 56 | typedef enum { | 56 | typedef enum { |
| 57 | IPHONE_AFC_FILE_READ = 0x00000001, // seems to be able to read and write files | 57 | AFC_FOPEN_RDONLY = 0x00000001, // r O_RDONLY |
| 58 | IPHONE_AFC_FILE_WRITE = 0x00000002, // writes and creates a file, blanks it out, etc. | 58 | AFC_FOPEN_RW = 0x00000002, // r+ O_RDWR | O_CREAT |
| 59 | IPHONE_AFC_FILE_RW = 0x00000003, // seems to do the same as 2. Might even create the file. | 59 | AFC_FOPEN_WRONLY = 0x00000003, // w O_WRONLY | O_CREAT | O_TRUNC |
| 60 | IPHONE_AFC_FILE_CREAT = 0x00000004, // no idea -- appears to be "write" -- clears file beforehand like 3 | 60 | AFC_FOPEN_WR = 0x00000004, // w+ O_RDWR | O_CREAT | O_TRUNC |
| 61 | IPHONE_AFC_FILE_OP6 = 0x00000006, // no idea yet -- appears to be the same as 5. | 61 | AFC_FOPEN_APPEND = 0x00000005, // a O_WRONLY | O_APPEND | O_CREAT |
| 62 | IPHONE_AFC_FILE_OP1 = 0x00000001, // no idea juuust yet... probably read. | 62 | AFC_FOPEN_RDAPPEND = 0x00000006 // a+ O_RDWR | O_APPEND | O_CREAT |
| 63 | IPHONE_AFC_FILE_OP0 = 0x00000000, | ||
| 64 | IPHONE_AFC_FILE_OP10 = 0x0000000a | ||
| 65 | } iphone_afc_file_mode_t; | 63 | } iphone_afc_file_mode_t; |
| 66 | 64 | ||
| 67 | struct iphone_device_int; | 65 | struct iphone_device_int; |
