diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/libiphone/libiphone.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/include/libiphone/libiphone.h b/include/libiphone/libiphone.h index c1553b5..230343e 100644 --- a/include/libiphone/libiphone.h +++ b/include/libiphone/libiphone.h | |||
| @@ -31,32 +31,33 @@ extern "C" { | |||
| 31 | 31 | ||
| 32 | //general errors | 32 | //general errors |
| 33 | #define IPHONE_E_SUCCESS 0 | 33 | #define IPHONE_E_SUCCESS 0 |
| 34 | #define IPHONE_E_NO_DEVICE -1 | 34 | #define IPHONE_E_INVALID_ARG -1 |
| 35 | #define IPHONE_E_TIMEOUT -2 | 35 | #define IPHONE_E_NO_DEVICE -2 |
| 36 | #define IPHONE_E_NOT_ENOUGH_DATA -3 | 36 | #define IPHONE_E_TIMEOUT -3 |
| 37 | #define IPHONE_E_NOT_ENOUGH_DATA -4 | ||
| 37 | 38 | ||
| 38 | //lockdownd specific error | 39 | //lockdownd specific error |
| 39 | #define IPHONE_E_INVALID_CONF -4 | 40 | #define IPHONE_E_INVALID_CONF -5 |
| 40 | #define IPHONE_E_PAIRING_FAILED -5 | 41 | #define IPHONE_E_PAIRING_FAILED -6 |
| 41 | #define IPHONE_E_SSL_ERROR -6 | 42 | #define IPHONE_E_SSL_ERROR -7 |
| 42 | 43 | ||
| 43 | //afc specific error | 44 | //afc specific error |
| 44 | #define IPHONE_E_NO_SUCH_FILE -7 | 45 | #define IPHONE_E_NO_SUCH_FILE -8 |
| 45 | 46 | ||
| 46 | struct iphone_device_int; | 47 | struct iphone_device_int; |
| 47 | typedef iphone_device_int *iphone_device_t; | 48 | typedef struct iphone_device_int *iphone_device_t; |
| 48 | 49 | ||
| 49 | struct iphone_lckd_client_int; | 50 | struct iphone_lckd_client_int; |
| 50 | typedef iphone_lckd_client_int *iphone_lckd_client_t; | 51 | typedef struct iphone_lckd_client_int *iphone_lckd_client_t; |
| 51 | 52 | ||
| 52 | struct iphone_umux_client_int; | 53 | struct iphone_umux_client_int; |
| 53 | typedef iphone_umux_client_int *iphone_umux_client_t; | 54 | typedef struct iphone_umux_client_int *iphone_umux_client_t; |
| 54 | 55 | ||
| 55 | struct iphone_afc_client_int; | 56 | struct iphone_afc_client_int; |
| 56 | typedef iphone_afc_client_int *iphone_afc_client_t; | 57 | typedef struct iphone_afc_client_int *iphone_afc_client_t; |
| 57 | 58 | ||
| 58 | struct iphone_afc_file_int; | 59 | struct iphone_afc_file_int; |
| 59 | typedef iphone_afc_file_int *iphone_afc_file_t; | 60 | typedef struct iphone_afc_file_int *iphone_afc_file_t; |
| 60 | 61 | ||
| 61 | //device related functions | 62 | //device related functions |
| 62 | int iphone_get_device ( iphone_device_t *device ); | 63 | int iphone_get_device ( iphone_device_t *device ); |
| @@ -88,12 +89,12 @@ char **iphone_afc_get_devinfo ( iphone_afc_client_t client ); | |||
| 88 | char **iphone_afc_get_dir_list ( iphone_afc_client_t client, const char *dir); | 89 | char **iphone_afc_get_dir_list ( iphone_afc_client_t client, const char *dir); |
| 89 | 90 | ||
| 90 | int iphone_afc_get_file_attr ( iphone_afc_client_t client, const char *filename, struct stat *stbuf ); | 91 | int iphone_afc_get_file_attr ( iphone_afc_client_t client, const char *filename, struct stat *stbuf ); |
| 91 | int iphone_afc_open_file ( iphone_afc_client_t client, const char *filename, uint32 file_mode, iphone_afc_file_t *file ); | 92 | int iphone_afc_open_file ( iphone_afc_client_t client, const char *filename, uint32_t file_mode, iphone_afc_file_t *file ); |
| 92 | void iphone_afc_close_file ( iphone_afc_client_t client, iphone_afc_file_t file); | 93 | void iphone_afc_close_file ( iphone_afc_client_t client, iphone_afc_file_t file); |
| 93 | int iphone_afc_read_file ( iphone_afc_client_t client, iphone_afc_file_t file, char *data, int length); | 94 | int iphone_afc_read_file ( iphone_afc_client_t client, iphone_afc_file_t file, char *data, int length); |
| 94 | int iphone_afc_write_file ( iphone_afc_client_t client, iphone_afc_file_t file, const char *data, int length); | 95 | int iphone_afc_write_file ( iphone_afc_client_t client, iphone_afc_file_t file, const char *data, int length); |
| 95 | int iphone_afc_seek_file ( iphone_afc_client_t client, iphone_afc_file_t file, int seekpos); | 96 | int iphone_afc_seek_file ( iphone_afc_client_t client, iphone_afc_file_t file, int seekpos); |
| 96 | int iphone_afc_truncate_file ( iphone_afc_client_t client, iphone_afc_file_t file, uint32 newsize); | 97 | int iphone_afc_truncate_file ( iphone_afc_client_t client, iphone_afc_file_t file, uint32_t newsize); |
| 97 | int iphone_afc_delete_file ( iphone_afc_client_t client, const char *path); | 98 | int iphone_afc_delete_file ( iphone_afc_client_t client, const char *path); |
| 98 | int iphone_afc_rename_file ( iphone_afc_client_t client, const char *from, const char *to); | 99 | int iphone_afc_rename_file ( iphone_afc_client_t client, const char *from, const char *to); |
| 99 | int iphone_afc_mkdir ( iphone_afc_client_t client, const char *dir); | 100 | int iphone_afc_mkdir ( iphone_afc_client_t client, const char *dir); |
