summaryrefslogtreecommitdiffstats
path: root/include/libiphone/afc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libiphone/afc.h')
-rw-r--r--include/libiphone/afc.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/libiphone/afc.h b/include/libiphone/afc.h
index 2a0bbad..b64510b 100644
--- a/include/libiphone/afc.h
+++ b/include/libiphone/afc.h
@@ -21,6 +21,12 @@ typedef enum {
21 AFC_SYMLINK = 2 21 AFC_SYMLINK = 2
22} afc_link_type_t; 22} afc_link_type_t;
23 23
24typedef enum {
25 AFC_LOCK_SH = 1 | 4, // shared lock
26 AFC_LOCK_EX = 2 | 4, // exclusive lock
27 AFC_LOCK_UN = 8 | 4 // unlock
28} afc_lock_op_t;
29
24struct afc_client_int; 30struct afc_client_int;
25typedef struct afc_client_int *afc_client_t; 31typedef struct afc_client_int *afc_client_t;
26 32
@@ -36,7 +42,7 @@ iphone_error_t afc_get_dir_list ( afc_client_t client, const char *dir, char ***
36iphone_error_t afc_get_file_info ( afc_client_t client, const char *filename, char ***infolist ); 42iphone_error_t afc_get_file_info ( afc_client_t client, const char *filename, char ***infolist );
37iphone_error_t afc_open_file ( afc_client_t client, const char *filename, afc_file_mode_t file_mode, uint64_t *handle ); 43iphone_error_t afc_open_file ( afc_client_t client, const char *filename, afc_file_mode_t file_mode, uint64_t *handle );
38iphone_error_t afc_close_file ( afc_client_t client, uint64_t handle); 44iphone_error_t afc_close_file ( afc_client_t client, uint64_t handle);
39iphone_error_t afc_lock_file ( afc_client_t client, uint64_t handle, int operation); 45iphone_error_t afc_lock_file ( afc_client_t client, uint64_t handle, afc_lock_op_t operation);
40iphone_error_t afc_read_file ( afc_client_t client, uint64_t handle, char *data, int length, uint32_t *bytes); 46iphone_error_t afc_read_file ( afc_client_t client, uint64_t handle, char *data, int length, uint32_t *bytes);
41iphone_error_t afc_write_file ( afc_client_t client, uint64_t handle, const char *data, int length, uint32_t *bytes); 47iphone_error_t afc_write_file ( afc_client_t client, uint64_t handle, const char *data, int length, uint32_t *bytes);
42iphone_error_t afc_seek_file ( afc_client_t client, uint64_t handle, int64_t offset, int whence); 48iphone_error_t afc_seek_file ( afc_client_t client, uint64_t handle, int64_t offset, int whence);