diff options
Diffstat (limited to 'include/libimobiledevice')
| -rw-r--r-- | include/libimobiledevice/afc.h | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/include/libimobiledevice/afc.h b/include/libimobiledevice/afc.h index 4ad3dbd..3dcb5da 100644 --- a/include/libimobiledevice/afc.h +++ b/include/libimobiledevice/afc.h | |||
| @@ -145,6 +145,20 @@ LIBIMOBILEDEVICE_API afc_error_t afc_client_free(afc_client_t client); | |||
| 145 | LIBIMOBILEDEVICE_API afc_error_t afc_get_device_info(afc_client_t client, char ***device_information); | 145 | LIBIMOBILEDEVICE_API afc_error_t afc_get_device_info(afc_client_t client, char ***device_information); |
| 146 | 146 | ||
| 147 | /** | 147 | /** |
| 148 | * Get device information for a connected client. The device information | ||
| 149 | * returned is the device model as well as the free space, the total capacity | ||
| 150 | * and blocksize on the accessed disk partition. | ||
| 151 | * | ||
| 152 | * @param client The client to get device info for. | ||
| 153 | * @param device_information A pointer to a plist_t that will be populated | ||
| 154 | * with key-value pairs (dictionary) representing the device’s | ||
| 155 | * storage and model information. Free with plist_free(). | ||
| 156 | * | ||
| 157 | * @return AFC_E_SUCCESS on success or an AFC_E_* error value. | ||
| 158 | */ | ||
| 159 | LIBIMOBILEDEVICE_API afc_error_t afc_get_device_info_plist(afc_client_t client, plist_t *device_information); | ||
| 160 | |||
| 161 | /** | ||
| 148 | * Gets a directory listing of the directory requested. | 162 | * Gets a directory listing of the directory requested. |
| 149 | * | 163 | * |
| 150 | * @param client The client to get a directory listing from. | 164 | * @param client The client to get a directory listing from. |
| @@ -163,7 +177,7 @@ LIBIMOBILEDEVICE_API afc_error_t afc_read_directory(afc_client_t client, const c | |||
| 163 | * @param client The client to use to get the information of the file. | 177 | * @param client The client to use to get the information of the file. |
| 164 | * @param path The fully-qualified path to the file. | 178 | * @param path The fully-qualified path to the file. |
| 165 | * @param file_information Pointer to a buffer that will be filled with a | 179 | * @param file_information Pointer to a buffer that will be filled with a |
| 166 | * NULL-terminated list of strings with the file information. Set to NULL | 180 | * NULL-terminated list of strings with the file attributes. Set to NULL |
| 167 | * before calling this function. Free with afc_dictionary_free(). | 181 | * before calling this function. Free with afc_dictionary_free(). |
| 168 | * | 182 | * |
| 169 | * @return AFC_E_SUCCESS on success or an AFC_E_* error value. | 183 | * @return AFC_E_SUCCESS on success or an AFC_E_* error value. |
| @@ -171,6 +185,19 @@ LIBIMOBILEDEVICE_API afc_error_t afc_read_directory(afc_client_t client, const c | |||
| 171 | LIBIMOBILEDEVICE_API afc_error_t afc_get_file_info(afc_client_t client, const char *path, char ***file_information); | 185 | LIBIMOBILEDEVICE_API afc_error_t afc_get_file_info(afc_client_t client, const char *path, char ***file_information); |
| 172 | 186 | ||
| 173 | /** | 187 | /** |
| 188 | * Gets information about a specific file. | ||
| 189 | * | ||
| 190 | * @param client The client to use to get the information of the file. | ||
| 191 | * @param path The fully-qualified path to the file. | ||
| 192 | * @param file_information A pointer to a plist_t that will be populated | ||
| 193 | * with key-value pairs (dictionary) representing the file attributes. | ||
| 194 | * Free with plist_free(). | ||
| 195 | * | ||
| 196 | * @return AFC_E_SUCCESS on success or an AFC_E_* error value. | ||
| 197 | */ | ||
| 198 | LIBIMOBILEDEVICE_API afc_error_t afc_get_file_info_plist(afc_client_t client, const char *path, plist_t *file_information); | ||
| 199 | |||
| 200 | /** | ||
| 174 | * Opens a file on the device. | 201 | * Opens a file on the device. |
| 175 | * | 202 | * |
| 176 | * @param client The client to use to open the file. | 203 | * @param client The client to use to open the file. |
