summaryrefslogtreecommitdiffstats
path: root/AFC.h
diff options
context:
space:
mode:
Diffstat (limited to 'AFC.h')
-rw-r--r--AFC.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/AFC.h b/AFC.h
index 281e624..787b9fe 100644
--- a/AFC.h
+++ b/AFC.h
@@ -53,11 +53,14 @@ enum {
53 AFC_GET_INFO = 0x0000000a, 53 AFC_GET_INFO = 0x0000000a,
54 AFC_GET_DEVINFO = 0x0000000b, 54 AFC_GET_DEVINFO = 0x0000000b,
55 AFC_LIST_DIR = 0x00000003, 55 AFC_LIST_DIR = 0x00000003,
56 AFC_DELETE = 0x00000008,
57 AFC_RENAME = 0x00000018,
56 AFC_SUCCESS_RESPONSE = 0x00000002, 58 AFC_SUCCESS_RESPONSE = 0x00000002,
57 AFC_FILE_OPEN = 0x0000000d, 59 AFC_FILE_OPEN = 0x0000000d,
58 AFC_FILE_CLOSE = 0x00000014, 60 AFC_FILE_CLOSE = 0x00000014,
59 AFC_FILE_HANDLE = 0x0000000e, 61 AFC_FILE_HANDLE = 0x0000000e,
60 AFC_READ = 0x0000000f 62 AFC_READ = 0x0000000f,
63 AFC_WRITE = 0x00000010
61}; 64};
62 65
63AFClient *afc_connect(iPhone *phone, int s_port, int d_port); 66AFClient *afc_connect(iPhone *phone, int s_port, int d_port);
@@ -72,3 +75,6 @@ AFCFile *afc_get_file_info(AFClient *client, char *path);
72AFCFile *afc_open_file(AFClient *client, const char *filename, uint32 file_mode); 75AFCFile *afc_open_file(AFClient *client, const char *filename, uint32 file_mode);
73void afc_close_file(AFClient *client, AFCFile *file); 76void afc_close_file(AFClient *client, AFCFile *file);
74int afc_read_file(AFClient *client, AFCFile *file, char *data, int length); 77int afc_read_file(AFClient *client, AFCFile *file, char *data, int length);
78int afc_write_file(AFClient *client, AFCFile *file, char *data, int length);
79int afc_delete_file(AFClient *client, const char *path);
80int afc_rename_file(AFClient *client, const char *from, const char *to);