summaryrefslogtreecommitdiffstats
path: root/include/libiphone
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2009-04-21 17:20:36 +0200
committerGravatar Matt Colyer2009-05-08 07:57:09 -0700
commit2ce660f06cd9399d8aaf3c585130ba6d410b1d17 (patch)
treec1f4301c00b6e1e761d6a7726248b049ea37b40c /include/libiphone
parent7a93c3469de1063e48c8b946fa9ed9019de6934c (diff)
downloadlibimobiledevice-2ce660f06cd9399d8aaf3c585130ba6d410b1d17.tar.gz
libimobiledevice-2ce660f06cd9399d8aaf3c585130ba6d410b1d17.tar.bz2
AFC cleanup and improved error handling
Diffstat (limited to 'include/libiphone')
-rw-r--r--include/libiphone/libiphone.h4
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" {
#define IPHONE_E_START_SERVICE_FAILED -12
//afc specific error
-#define IPHONE_E_NO_SUCH_FILE -13
+#define IPHONE_E_AFC_ERROR -13
typedef int16_t iphone_error_t;
@@ -122,6 +122,8 @@ iphone_error_t iphone_mux_recv ( iphone_umux_client_t client, char *data, uint32
//afc related functions
iphone_error_t iphone_afc_new_client ( iphone_device_t device, int src_port, int dst_port, iphone_afc_client_t *client );
iphone_error_t iphone_afc_free_client ( iphone_afc_client_t client );
+int iphone_afc_get_afcerror ( iphone_afc_client_t client );
+int iphone_afc_get_errno ( iphone_afc_client_t client );
iphone_error_t iphone_afc_get_devinfo ( iphone_afc_client_t client, char ***infos );
iphone_error_t iphone_afc_get_dir_list ( iphone_afc_client_t client, const char *dir, char ***list);