diff options
Diffstat (limited to 'src/AFC.h')
| -rw-r--r-- | src/AFC.h | 11 |
1 files changed, 5 insertions, 6 deletions
| @@ -35,8 +35,7 @@ typedef struct { | |||
| 35 | } AFCPacket; | 35 | } AFCPacket; |
| 36 | 36 | ||
| 37 | typedef struct { | 37 | typedef struct { |
| 38 | usbmux_tcp_header *connection; | 38 | usbmux_connection *connection; |
| 39 | iPhone *phone; | ||
| 40 | AFCPacket *afc_packet; | 39 | AFCPacket *afc_packet; |
| 41 | int file_handle; | 40 | int file_handle; |
| 42 | } AFClient; | 41 | } AFClient; |
| @@ -79,14 +78,14 @@ AFClient *afc_connect(iPhone *phone, int s_port, int d_port); | |||
| 79 | void afc_disconnect(AFClient *client); | 78 | void afc_disconnect(AFClient *client); |
| 80 | int count_nullspaces(char *string, int number); | 79 | int count_nullspaces(char *string, int number); |
| 81 | char **make_strings_list(char *tokens, int true_length); | 80 | char **make_strings_list(char *tokens, int true_length); |
| 82 | int dispatch_AFC_packet(AFClient *client, char *data, int length); | 81 | int dispatch_AFC_packet(AFClient *client, const char *data, int length); |
| 83 | int receive_AFC_data(AFClient *client, char **dump_here); | 82 | int receive_AFC_data(AFClient *client, char **dump_here); |
| 84 | 83 | ||
| 85 | char **afc_get_dir_list(AFClient *client, char *dir); | 84 | char **afc_get_dir_list(AFClient *client, const char *dir); |
| 86 | AFCFile *afc_get_file_info(AFClient *client, char *path); | 85 | AFCFile *afc_get_file_info(AFClient *client, const char *path); |
| 87 | AFCFile *afc_open_file(AFClient *client, const char *filename, uint32 file_mode); | 86 | AFCFile *afc_open_file(AFClient *client, const char *filename, uint32 file_mode); |
| 88 | void afc_close_file(AFClient *client, AFCFile *file); | 87 | void afc_close_file(AFClient *client, AFCFile *file); |
| 89 | int afc_read_file(AFClient *client, AFCFile *file, char *data, int length); | 88 | int afc_read_file(AFClient *client, AFCFile *file, char *data, int length); |
| 90 | int afc_write_file(AFClient *client, AFCFile *file, char *data, int length); | 89 | int afc_write_file(AFClient *client, AFCFile *file, const char *data, int length); |
| 91 | int afc_delete_file(AFClient *client, const char *path); | 90 | int afc_delete_file(AFClient *client, const char *path); |
| 92 | int afc_rename_file(AFClient *client, const char *from, const char *to); | 91 | int afc_rename_file(AFClient *client, const char *from, const char *to); |
