summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libiphone/libiphone.h26
1 files changed, 14 insertions, 12 deletions
diff --git a/include/libiphone/libiphone.h b/include/libiphone/libiphone.h
index bd8d9fb..463efa7 100644
--- a/include/libiphone/libiphone.h
+++ b/include/libiphone/libiphone.h
@@ -63,6 +63,11 @@ typedef enum {
63 AFC_FOPEN_RDAPPEND = 0x00000006 // a+ O_RDWR | O_APPEND | O_CREAT 63 AFC_FOPEN_RDAPPEND = 0x00000006 // a+ O_RDWR | O_APPEND | O_CREAT
64} iphone_afc_file_mode_t; 64} iphone_afc_file_mode_t;
65 65
66typedef enum {
67 IPHONE_AFC_HARDLINK = 1,
68 IPHONE_AFC_SYMLINK = 2
69} iphone_afc_link_type_t;
70
66struct iphone_device_int; 71struct iphone_device_int;
67typedef struct iphone_device_int *iphone_device_t; 72typedef struct iphone_device_int *iphone_device_t;
68 73
@@ -72,9 +77,6 @@ typedef struct iphone_lckd_client_int *iphone_lckd_client_t;
72struct iphone_afc_client_int; 77struct iphone_afc_client_int;
73typedef struct iphone_afc_client_int *iphone_afc_client_t; 78typedef struct iphone_afc_client_int *iphone_afc_client_t;
74 79
75struct iphone_afc_file_int;
76typedef struct iphone_afc_file_int *iphone_afc_file_t;
77
78struct iphone_msync_client_int; 80struct iphone_msync_client_int;
79typedef struct iphone_msync_client_int *iphone_msync_client_t; 81typedef struct iphone_msync_client_int *iphone_msync_client_t;
80 82
@@ -118,19 +120,19 @@ int iphone_afc_get_errno ( iphone_afc_client_t client );
118iphone_error_t iphone_afc_get_devinfo ( iphone_afc_client_t client, char ***infos ); 120iphone_error_t iphone_afc_get_devinfo ( iphone_afc_client_t client, char ***infos );
119iphone_error_t iphone_afc_get_dir_list ( iphone_afc_client_t client, const char *dir, char ***list); 121iphone_error_t iphone_afc_get_dir_list ( iphone_afc_client_t client, const char *dir, char ***list);
120 122
121iphone_error_t iphone_afc_get_file_attr ( iphone_afc_client_t client, const char *filename, struct stat *stbuf ); 123iphone_error_t iphone_afc_get_file_info ( iphone_afc_client_t client, const char *filename, char ***infolist );
122iphone_error_t iphone_afc_open_file ( iphone_afc_client_t client, const char *filename, iphone_afc_file_mode_t file_mode, iphone_afc_file_t *file ); 124iphone_error_t iphone_afc_open_file ( iphone_afc_client_t client, const char *filename, iphone_afc_file_mode_t file_mode, uint64_t *handle );
123iphone_error_t iphone_afc_close_file ( iphone_afc_client_t client, iphone_afc_file_t file); 125iphone_error_t iphone_afc_close_file ( iphone_afc_client_t client, uint64_t handle);
124iphone_error_t iphone_afc_lock_file ( iphone_afc_client_t client, iphone_afc_file_t file, int operation); 126iphone_error_t iphone_afc_lock_file ( iphone_afc_client_t client, uint64_t handle, int operation);
125iphone_error_t iphone_afc_read_file ( iphone_afc_client_t client, iphone_afc_file_t file, char *data, int length, uint32_t *bytes); 127iphone_error_t iphone_afc_read_file ( iphone_afc_client_t client, uint64_t handle, char *data, int length, uint32_t *bytes);
126iphone_error_t iphone_afc_write_file ( iphone_afc_client_t client, iphone_afc_file_t file, const char *data, int length, uint32_t *bytes); 128iphone_error_t iphone_afc_write_file ( iphone_afc_client_t client, uint64_t handle, const char *data, int length, uint32_t *bytes);
127iphone_error_t iphone_afc_seek_file ( iphone_afc_client_t client, iphone_afc_file_t file, int seekpos); 129iphone_error_t iphone_afc_seek_file ( iphone_afc_client_t client, uint64_t handle, int64_t offset, int whence);
128iphone_error_t iphone_afc_truncate_file ( iphone_afc_client_t client, iphone_afc_file_t file, uint32_t newsize); 130iphone_error_t iphone_afc_truncate_file ( iphone_afc_client_t client, uint64_t handle, uint64_t newsize);
129iphone_error_t iphone_afc_delete_file ( iphone_afc_client_t client, const char *path); 131iphone_error_t iphone_afc_delete_file ( iphone_afc_client_t client, const char *path);
130iphone_error_t iphone_afc_rename_file ( iphone_afc_client_t client, const char *from, const char *to); 132iphone_error_t iphone_afc_rename_file ( iphone_afc_client_t client, const char *from, const char *to);
131iphone_error_t iphone_afc_mkdir ( iphone_afc_client_t client, const char *dir); 133iphone_error_t iphone_afc_mkdir ( iphone_afc_client_t client, const char *dir);
132iphone_error_t iphone_afc_truncate(iphone_afc_client_t client, const char *path, off_t newsize); 134iphone_error_t iphone_afc_truncate(iphone_afc_client_t client, const char *path, off_t newsize);
133 135iphone_error_t iphone_afc_make_link ( iphone_afc_client_t client, iphone_afc_link_type_t linktype, const char *target, const char *linkname);
134 136
135 137
136iphone_error_t iphone_msync_new_client(iphone_device_t device, int dst_port, 138iphone_error_t iphone_msync_new_client(iphone_device_t device, int dst_port,