summaryrefslogtreecommitdiffstats
path: root/include/libiphone
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2009-09-12 11:39:06 +0200
committerGravatar Martin Szulecki2009-09-12 11:39:06 +0200
commitfe6c846fa5d80824ee708393c4ea1a1fe4049a77 (patch)
tree89723aba73bd0121af1320b10ca6762bd21e1bc7 /include/libiphone
parent51bd7976416ac5010f5edc5e70946cbe33646e93 (diff)
downloadlibimobiledevice-fe6c846fa5d80824ee708393c4ea1a1fe4049a77.tar.gz
libimobiledevice-fe6c846fa5d80824ee708393c4ea1a1fe4049a77.tar.bz2
Update the afc_get_device_info helper to return an afc_error_t
We should return any underlying error afc_get_device_info returns so one is able to act properly. Also renamed it to "key" instead of "field" to be more generic.
Diffstat (limited to 'include/libiphone')
-rw-r--r--include/libiphone/afc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libiphone/afc.h b/include/libiphone/afc.h
index 77b6f0e..e913f91 100644
--- a/include/libiphone/afc.h
+++ b/include/libiphone/afc.h
@@ -107,7 +107,7 @@ afc_error_t afc_truncate(afc_client_t client, const char *path, off_t newsize);
afc_error_t afc_make_link(afc_client_t client, afc_link_type_t linktype, const char *target, const char *linkname);
/* Helper functions */
-char * afc_get_device_info_field(afc_client_t client, const char *field);
+afc_error_t afc_get_device_info_key(afc_client_t client, const char *key, char **value);
#ifdef __cplusplus
}