diff options
| author | 2009-07-06 19:38:00 +0200 | |
|---|---|---|
| committer | 2009-07-18 10:39:41 -0700 | |
| commit | 4105af17e9f2df5405afa6a74a02a304ed6bacff (patch) | |
| tree | daf79b623def5a66810466842197f3bc696c8c28 /include/libiphone/libiphone.h | |
| parent | 6de08b1e12946b85a595f82c1c04391d70d8b828 (diff) | |
| download | libimobiledevice-4105af17e9f2df5405afa6a74a02a304ed6bacff.tar.gz libimobiledevice-4105af17e9f2df5405afa6a74a02a304ed6bacff.tar.bz2 | |
API cleanup for AFC
Diffstat (limited to 'include/libiphone/libiphone.h')
| -rw-r--r-- | include/libiphone/libiphone.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/include/libiphone/libiphone.h b/include/libiphone/libiphone.h index 463efa7..3f5d86c 100644 --- a/include/libiphone/libiphone.h +++ b/include/libiphone/libiphone.h | |||
| @@ -54,29 +54,12 @@ extern "C" { | |||
| 54 | 54 | ||
| 55 | typedef int16_t iphone_error_t; | 55 | typedef int16_t iphone_error_t; |
| 56 | 56 | ||
| 57 | typedef enum { | ||
| 58 | AFC_FOPEN_RDONLY = 0x00000001, // r O_RDONLY | ||
| 59 | AFC_FOPEN_RW = 0x00000002, // r+ O_RDWR | O_CREAT | ||
| 60 | AFC_FOPEN_WRONLY = 0x00000003, // w O_WRONLY | O_CREAT | O_TRUNC | ||
| 61 | AFC_FOPEN_WR = 0x00000004, // w+ O_RDWR | O_CREAT | O_TRUNC | ||
| 62 | AFC_FOPEN_APPEND = 0x00000005, // a O_WRONLY | O_APPEND | O_CREAT | ||
| 63 | AFC_FOPEN_RDAPPEND = 0x00000006 // a+ O_RDWR | O_APPEND | O_CREAT | ||
| 64 | } iphone_afc_file_mode_t; | ||
| 65 | |||
| 66 | typedef enum { | ||
| 67 | IPHONE_AFC_HARDLINK = 1, | ||
| 68 | IPHONE_AFC_SYMLINK = 2 | ||
| 69 | } iphone_afc_link_type_t; | ||
| 70 | |||
| 71 | struct iphone_device_int; | 57 | struct iphone_device_int; |
| 72 | typedef struct iphone_device_int *iphone_device_t; | 58 | typedef struct iphone_device_int *iphone_device_t; |
| 73 | 59 | ||
| 74 | struct iphone_lckd_client_int; | 60 | struct iphone_lckd_client_int; |
| 75 | typedef struct iphone_lckd_client_int *iphone_lckd_client_t; | 61 | typedef struct iphone_lckd_client_int *iphone_lckd_client_t; |
| 76 | 62 | ||
| 77 | struct iphone_afc_client_int; | ||
| 78 | typedef struct iphone_afc_client_int *iphone_afc_client_t; | ||
| 79 | |||
| 80 | struct iphone_msync_client_int; | 63 | struct iphone_msync_client_int; |
| 81 | typedef struct iphone_msync_client_int *iphone_msync_client_t; | 64 | typedef struct iphone_msync_client_int *iphone_msync_client_t; |
| 82 | 65 | ||
| @@ -111,29 +94,6 @@ iphone_error_t iphone_lckd_recv ( iphone_lckd_client_t client, plist_t* plist); | |||
| 111 | iphone_error_t iphone_lckd_send ( iphone_lckd_client_t client, plist_t plist); | 94 | iphone_error_t iphone_lckd_send ( iphone_lckd_client_t client, plist_t plist); |
| 112 | 95 | ||
| 113 | 96 | ||
| 114 | //afc related functions | ||
| 115 | iphone_error_t iphone_afc_new_client ( iphone_device_t device, int dst_port, iphone_afc_client_t *client ); | ||
| 116 | iphone_error_t iphone_afc_free_client ( iphone_afc_client_t client ); | ||
| 117 | int iphone_afc_get_afcerror ( iphone_afc_client_t client ); | ||
| 118 | int iphone_afc_get_errno ( iphone_afc_client_t client ); | ||
| 119 | |||
| 120 | iphone_error_t iphone_afc_get_devinfo ( iphone_afc_client_t client, char ***infos ); | ||
| 121 | iphone_error_t iphone_afc_get_dir_list ( iphone_afc_client_t client, const char *dir, char ***list); | ||
| 122 | |||
| 123 | iphone_error_t iphone_afc_get_file_info ( iphone_afc_client_t client, const char *filename, char ***infolist ); | ||
| 124 | iphone_error_t iphone_afc_open_file ( iphone_afc_client_t client, const char *filename, iphone_afc_file_mode_t file_mode, uint64_t *handle ); | ||
| 125 | iphone_error_t iphone_afc_close_file ( iphone_afc_client_t client, uint64_t handle); | ||
| 126 | iphone_error_t iphone_afc_lock_file ( iphone_afc_client_t client, uint64_t handle, int operation); | ||
| 127 | iphone_error_t iphone_afc_read_file ( iphone_afc_client_t client, uint64_t handle, char *data, int length, uint32_t *bytes); | ||
| 128 | iphone_error_t iphone_afc_write_file ( iphone_afc_client_t client, uint64_t handle, const char *data, int length, uint32_t *bytes); | ||
| 129 | iphone_error_t iphone_afc_seek_file ( iphone_afc_client_t client, uint64_t handle, int64_t offset, int whence); | ||
| 130 | iphone_error_t iphone_afc_truncate_file ( iphone_afc_client_t client, uint64_t handle, uint64_t newsize); | ||
| 131 | iphone_error_t iphone_afc_delete_file ( iphone_afc_client_t client, const char *path); | ||
| 132 | iphone_error_t iphone_afc_rename_file ( iphone_afc_client_t client, const char *from, const char *to); | ||
| 133 | iphone_error_t iphone_afc_mkdir ( iphone_afc_client_t client, const char *dir); | ||
| 134 | iphone_error_t iphone_afc_truncate(iphone_afc_client_t client, const char *path, off_t newsize); | ||
| 135 | iphone_error_t iphone_afc_make_link ( iphone_afc_client_t client, iphone_afc_link_type_t linktype, const char *target, const char *linkname); | ||
| 136 | |||
| 137 | 97 | ||
| 138 | iphone_error_t iphone_msync_new_client(iphone_device_t device, int dst_port, | 98 | iphone_error_t iphone_msync_new_client(iphone_device_t device, int dst_port, |
| 139 | iphone_msync_client_t * client); | 99 | iphone_msync_client_t * client); |
