|
cbmimage
|
Functions | |
| cbmimage_file * | cbmimage_file_open_by_name (const char *filename) |
| open a file on the cbmimage where the name is known | |
| cbmimage_file * | cbmimage_file_open_by_dir_entry (cbmimage_dir_entry *dir_entry) |
| open a file on the cbmimage that has already een enumerated | |
| void | cbmimage_file_close (cbmimage_file *file) |
| close a file | |
| int | cbmimage_file_read_next_block (cbmimage_file *file, uint8_t *buffer, size_t buffer_size) |
| read a block from the file | |
| void cbmimage_file_close | ( | cbmimage_file * | file | ) |
close a file
| [in] | file | pointer to a cbmimage_file that was obtained by a previous cbmimage_file_open_by_name() or cbmimage_file_open_by_dir_entry() call. |
| cbmimage_file * cbmimage_file_open_by_dir_entry | ( | cbmimage_dir_entry * | dir_entry | ) |
open a file on the cbmimage that has already een enumerated
| [in] | dir_entry | ptr to a directory entry for the file that should be opened. That dir_entry must have been the result of a previous cbmimage_dir_get_first() or cbmimage_dir_get_next() call. |
| cbmimage_file * cbmimage_file_open_by_name | ( | const char * | filename | ) |
open a file on the cbmimage where the name is known
| [in] | filename | pointer to the file name of the file to open on the image. |
| int cbmimage_file_read_next_block | ( | cbmimage_file * | file, |
| uint8_t * | buffer, | ||
| size_t | buffer_size ) |
read a block from the file
| [in] | file | pointer to a cbmimage_file that was obtained by a previous cbmimage_file_open_by_name() or cbmimage_file_open_by_dir_entry() call. |
| [in,out] | buffer | the buffer where the file contents are written to |
| [in] | buffer_size | the size of the buffer. |