diff options
Diffstat (limited to 'include/libiphone/libiphone.h')
| -rw-r--r-- | include/libiphone/libiphone.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/include/libiphone/libiphone.h b/include/libiphone/libiphone.h index 249b9b3..2e66b5d 100644 --- a/include/libiphone/libiphone.h +++ b/include/libiphone/libiphone.h | |||
| @@ -48,18 +48,18 @@ extern "C" { | |||
| 48 | //afc specific error | 48 | //afc specific error |
| 49 | #define IPHONE_E_NO_SUCH_FILE -12 | 49 | #define IPHONE_E_NO_SUCH_FILE -12 |
| 50 | 50 | ||
| 51 | typedef short iphone_error_t; | 51 | typedef int16_t iphone_error_t; |
| 52 | 52 | ||
| 53 | enum { | 53 | typedef enum { |
| 54 | AFC_FILE_READ = 0x00000002, // seems to be able to read and write files | 54 | IPHONE_AFC_FILE_READ = 0x00000002, // seems to be able to read and write files |
| 55 | AFC_FILE_WRITE = 0x00000003, // writes and creates a file, blanks it out, etc. | 55 | IPHONE_AFC_FILE_WRITE = 0x00000003, // writes and creates a file, blanks it out, etc. |
| 56 | AFC_FILE_RW = 0x00000005, // seems to do the same as 2. Might even create the file. | 56 | IPHONE_AFC_FILE_RW = 0x00000005, // seems to do the same as 2. Might even create the file. |
| 57 | AFC_FILE_OP4 = 0x00000004, // no idea -- appears to be "write" -- clears file beforehand like 3 | 57 | IPHONE_AFC_FILE_OP4 = 0x00000004, // no idea -- appears to be "write" -- clears file beforehand like 3 |
| 58 | AFC_FILE_OP6 = 0x00000006, // no idea yet -- appears to be the same as 5. | 58 | IPHONE_AFC_FILE_OP6 = 0x00000006, // no idea yet -- appears to be the same as 5. |
| 59 | AFC_FILE_OP1 = 0x00000001, // no idea juuust yet... probably read. | 59 | IPHONE_AFC_FILE_OP1 = 0x00000001, // no idea juuust yet... probably read. |
| 60 | AFC_FILE_OP0 = 0x00000000, | 60 | IPHONE_AFC_FILE_OP0 = 0x00000000, |
| 61 | AFC_FILE_OP10 = 0x0000000a | 61 | IPHONE_AFC_FILE_OP10 = 0x0000000a |
| 62 | }; | 62 | } iphone_afc_file_mode_t; |
| 63 | 63 | ||
| 64 | struct iphone_device_int; | 64 | struct iphone_device_int; |
| 65 | typedef struct iphone_device_int *iphone_device_t; | 65 | typedef struct iphone_device_int *iphone_device_t; |
| @@ -106,7 +106,7 @@ iphone_error_t iphone_afc_get_devinfo ( iphone_afc_client_t client, char ***info | |||
| 106 | iphone_error_t iphone_afc_get_dir_list ( iphone_afc_client_t client, const char *dir, char ***list); | 106 | iphone_error_t iphone_afc_get_dir_list ( iphone_afc_client_t client, const char *dir, char ***list); |
| 107 | 107 | ||
| 108 | iphone_error_t iphone_afc_get_file_attr ( iphone_afc_client_t client, const char *filename, struct stat *stbuf ); | 108 | iphone_error_t iphone_afc_get_file_attr ( iphone_afc_client_t client, const char *filename, struct stat *stbuf ); |
| 109 | iphone_error_t iphone_afc_open_file ( iphone_afc_client_t client, const char *filename, uint32_t file_mode, iphone_afc_file_t *file ); | 109 | iphone_error_t iphone_afc_open_file ( iphone_afc_client_t client, const char *filename, iphone_afc_file_mode_t file_mode, iphone_afc_file_t *file ); |
| 110 | iphone_error_t iphone_afc_close_file ( iphone_afc_client_t client, iphone_afc_file_t file); | 110 | iphone_error_t iphone_afc_close_file ( iphone_afc_client_t client, iphone_afc_file_t file); |
| 111 | iphone_error_t iphone_afc_read_file ( iphone_afc_client_t client, iphone_afc_file_t file, char *data, int length, uint32_t *bytes); | 111 | iphone_error_t iphone_afc_read_file ( iphone_afc_client_t client, iphone_afc_file_t file, char *data, int length, uint32_t *bytes); |
| 112 | iphone_error_t iphone_afc_write_file ( iphone_afc_client_t client, iphone_afc_file_t file, const char *data, int length, uint32_t *bytes); | 112 | iphone_error_t iphone_afc_write_file ( iphone_afc_client_t client, iphone_afc_file_t file, const char *data, int length, uint32_t *bytes); |
