summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2008-08-13 19:55:54 +0200
committerGravatar Jonathan Beck2008-08-31 19:27:19 +0200
commit07ef95d51191cef4246a6b8e6014a29edadde227 (patch)
treec7a0dabc021d628b0ee5f64ed5b46c696bd1d538
parentdd54db0bd0fd009d35f792b368212fdc7916b0c8 (diff)
downloadlibplist-07ef95d51191cef4246a6b8e6014a29edadde227.tar.gz
libplist-07ef95d51191cef4246a6b8e6014a29edadde227.tar.bz2
add afc_get_file_attr
-rw-r--r--include/libiphone/libiphone.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libiphone/libiphone.h b/include/libiphone/libiphone.h
index a4b8b12..2faaef7 100644
--- a/include/libiphone/libiphone.h
+++ b/include/libiphone/libiphone.h
@@ -27,6 +27,7 @@ extern "C" {
#endif
#include <sys/types.h>
+#include <sys/stat.h>
struct iph_device_int;
typedef iph_device_int *iph_device_t;
@@ -71,6 +72,8 @@ void iph_afc_free_client ( iph_afc_client_t client );
char **iph_afc_get_devinfo ( iph_afc_client_t client );
char **iph_afc_get_dir_list ( iph_afc_client_t client, const char *dir);
+
+int iph_afc_get_file_attr ( iph_afc_client_t client, const char *filename, struct stat *stbuf );
int iph_afc_open_file ( iph_afc_client_t client, const char *filename, uint32 file_mode, iph_afc_file_t *file );
void iph_afc_close_file ( iph_afc_client_t client, iph_afc_file_t file);
int iph_afc_read_file ( iph_afc_client_t client, iph_afc_file_t file, char *data, int length);