diff options
Diffstat (limited to 'AFC.h')
| -rw-r--r-- | AFC.h | 8 |
1 files changed, 7 insertions, 1 deletions
| @@ -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 | ||
| 63 | AFClient *afc_connect(iPhone *phone, int s_port, int d_port); | 66 | AFClient *afc_connect(iPhone *phone, int s_port, int d_port); |
| @@ -72,3 +75,6 @@ AFCFile *afc_get_file_info(AFClient *client, char *path); | |||
| 72 | AFCFile *afc_open_file(AFClient *client, const char *filename, uint32 file_mode); | 75 | AFCFile *afc_open_file(AFClient *client, const char *filename, uint32 file_mode); |
| 73 | void afc_close_file(AFClient *client, AFCFile *file); | 76 | void afc_close_file(AFClient *client, AFCFile *file); |
| 74 | int afc_read_file(AFClient *client, AFCFile *file, char *data, int length); | 77 | int afc_read_file(AFClient *client, AFCFile *file, char *data, int length); |
| 78 | int afc_write_file(AFClient *client, AFCFile *file, char *data, int length); | ||
| 79 | int afc_delete_file(AFClient *client, const char *path); | ||
| 80 | int afc_rename_file(AFClient *client, const char *from, const char *to); | ||
