From 2ce660f06cd9399d8aaf3c585130ba6d410b1d17 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 21 Apr 2009 17:20:36 +0200 Subject: AFC cleanup and improved error handling --- include/libiphone/libiphone.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/libiphone') 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); -- cgit v1.1-32-gdbae