libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ afc_file_open()

afc_error_t afc_file_open ( afc_client_t  client,
const char *  filename,
afc_file_mode_t  file_mode,
uint64_t *  handle 
)

Opens a file on the device.

Parameters
clientThe client to use to open the file.
filenameThe file to open. (must be a fully-qualified path)
file_modeThe mode to use to open the file.
handlePointer to a uint64_t that will hold the handle of the file
Returns
AFC_E_SUCCESS on success or an AFC_E_* error value.