From 62bcedced863a9c4ecc3601638635dfe172a9130 Mon Sep 17 00:00:00 2001 From: Matt Colyer Date: Mon, 4 Aug 2008 23:41:56 -0700 Subject: Zack's C. rewrite of usbmux (with a few additions by Matt Colyer). --- src/AFC.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/AFC.h') diff --git a/src/AFC.h b/src/AFC.h index 7a08103..bb5f0a7 100644 --- a/src/AFC.h +++ b/src/AFC.h @@ -35,8 +35,7 @@ typedef struct { } AFCPacket; typedef struct { - usbmux_tcp_header *connection; - iPhone *phone; + usbmux_connection *connection; AFCPacket *afc_packet; int file_handle; } AFClient; @@ -79,14 +78,14 @@ AFClient *afc_connect(iPhone *phone, int s_port, int d_port); void afc_disconnect(AFClient *client); int count_nullspaces(char *string, int number); char **make_strings_list(char *tokens, int true_length); -int dispatch_AFC_packet(AFClient *client, char *data, int length); +int dispatch_AFC_packet(AFClient *client, const char *data, int length); int receive_AFC_data(AFClient *client, char **dump_here); -char **afc_get_dir_list(AFClient *client, char *dir); -AFCFile *afc_get_file_info(AFClient *client, char *path); +char **afc_get_dir_list(AFClient *client, const char *dir); +AFCFile *afc_get_file_info(AFClient *client, const char *path); AFCFile *afc_open_file(AFClient *client, const char *filename, uint32 file_mode); void afc_close_file(AFClient *client, AFCFile *file); int afc_read_file(AFClient *client, AFCFile *file, char *data, int length); -int afc_write_file(AFClient *client, AFCFile *file, char *data, int length); +int afc_write_file(AFClient *client, AFCFile *file, const char *data, int length); int afc_delete_file(AFClient *client, const char *path); int afc_rename_file(AFClient *client, const char *from, const char *to); -- cgit v1.1-32-gdbae