summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libiphone/libiphone.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/libiphone/libiphone.h b/include/libiphone/libiphone.h
index 89b8529..768ff21 100644
--- a/include/libiphone/libiphone.h
+++ b/include/libiphone/libiphone.h
@@ -46,6 +46,17 @@ extern "C" {
//afc specific error
#define IPHONE_E_NO_SUCH_FILE -10
+enum {
+ AFC_FILE_READ = 0x00000002, // seems to be able to read and write files
+ AFC_FILE_WRITE = 0x00000003, // writes and creates a file, blanks it out, etc.
+ AFC_FILE_RW = 0x00000005, // seems to do the same as 2. Might even create the file.
+ AFC_FILE_OP4 = 0x00000004, // no idea -- appears to be "write" -- clears file beforehand like 3
+ AFC_FILE_OP6 = 0x00000006, // no idea yet -- appears to be the same as 5.
+ AFC_FILE_OP1 = 0x00000001, // no idea juuust yet... probably read.
+ AFC_FILE_OP0 = 0x00000000,
+ AFC_FILE_OP10 = 0x0000000a
+};
+
struct iphone_device_int;
typedef struct iphone_device_int *iphone_device_t;