diff options
| author | 2009-04-21 17:20:36 +0200 | |
|---|---|---|
| committer | 2009-05-08 07:57:09 -0700 | |
| commit | 2ce660f06cd9399d8aaf3c585130ba6d410b1d17 (patch) | |
| tree | c1f4301c00b6e1e761d6a7726248b049ea37b40c /include/libiphone/libiphone.h | |
| parent | 7a93c3469de1063e48c8b946fa9ed9019de6934c (diff) | |
| download | libimobiledevice-2ce660f06cd9399d8aaf3c585130ba6d410b1d17.tar.gz libimobiledevice-2ce660f06cd9399d8aaf3c585130ba6d410b1d17.tar.bz2 | |
AFC cleanup and improved error handling
Diffstat (limited to 'include/libiphone/libiphone.h')
| -rw-r--r-- | include/libiphone/libiphone.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/libiphone/libiphone.h b/include/libiphone/libiphone.h index 4bc2fea..36b1512 100644 --- a/include/libiphone/libiphone.h +++ b/include/libiphone/libiphone.h | |||
| @@ -49,7 +49,7 @@ extern "C" { | |||
| 49 | #define IPHONE_E_START_SERVICE_FAILED -12 | 49 | #define IPHONE_E_START_SERVICE_FAILED -12 |
| 50 | 50 | ||
| 51 | //afc specific error | 51 | //afc specific error |
| 52 | #define IPHONE_E_NO_SUCH_FILE -13 | 52 | #define IPHONE_E_AFC_ERROR -13 |
| 53 | 53 | ||
| 54 | typedef int16_t iphone_error_t; | 54 | typedef int16_t iphone_error_t; |
| 55 | 55 | ||
| @@ -122,6 +122,8 @@ iphone_error_t iphone_mux_recv ( iphone_umux_client_t client, char *data, uint32 | |||
| 122 | //afc related functions | 122 | //afc related functions |
| 123 | iphone_error_t iphone_afc_new_client ( iphone_device_t device, int src_port, int dst_port, iphone_afc_client_t *client ); | 123 | iphone_error_t iphone_afc_new_client ( iphone_device_t device, int src_port, int dst_port, iphone_afc_client_t *client ); |
| 124 | iphone_error_t iphone_afc_free_client ( iphone_afc_client_t client ); | 124 | iphone_error_t iphone_afc_free_client ( iphone_afc_client_t client ); |
| 125 | int iphone_afc_get_afcerror ( iphone_afc_client_t client ); | ||
| 126 | int iphone_afc_get_errno ( iphone_afc_client_t client ); | ||
| 125 | 127 | ||
| 126 | iphone_error_t iphone_afc_get_devinfo ( iphone_afc_client_t client, char ***infos ); | 128 | iphone_error_t iphone_afc_get_devinfo ( iphone_afc_client_t client, char ***infos ); |
| 127 | iphone_error_t iphone_afc_get_dir_list ( iphone_afc_client_t client, const char *dir, char ***list); | 129 | iphone_error_t iphone_afc_get_dir_list ( iphone_afc_client_t client, const char *dir, char ***list); |
