![]() |
MHEG5
18.9.0
MHEG5 Documentation
|
File System types. More...
#include "techtype.h"
Go to the source code of this file.
Enumerations | |
enum | E_STB_DSK_FILE_MODE { FILE_MODE_READ, FILE_MODE_WRITE, FILE_MODE_OVERWRITE } |
enum | E_STB_DSK_FILE_POSITION { FILE_POSITION_START, FILE_POSITION_END, FILE_POSITION_CURRENT } |
enum | E_STB_DIR_ENTRY_TYPE { DIR_ENTRY_FILE, DIR_ENTRY_DIRECTORY, DIR_ENTRY_OTHER } |
Functions | |
BOOLEAN | STB_NVMFileSize (U8BIT *filename, U32BIT *filesize) |
Returns the size in KB of the given file. More... | |
void * | STB_NVMOpenFile (U8BIT *name, E_STB_DSK_FILE_MODE mode) |
Opens an existing file or creates a new one. More... | |
void | STB_NVMCloseFile (void *file) |
Flushes and closes an open file. More... | |
U32BIT | STB_NVMReadFile (void *file, U8BIT *data, U32BIT size) |
Reads data from an open file. More... | |
U32BIT | STB_NVMWriteFile (void *file, U8BIT *data, U32BIT size) |
Writes data to an open file. More... | |
BOOLEAN | STB_NVMDeleteFile (U8BIT *filename) |
Deletes the file. More... | |
void * | STB_NVMOpenDirectory (U8BIT *dir_name) |
Opens a directory in order to read the entries. More... | |
BOOLEAN | STB_NVMReadDirectory (void *dir, U8BIT *filename, U16BIT filename_len, E_STB_DIR_ENTRY_TYPE *entry_type) |
Reads the next entry from the directory, returning the name of the entry and the type of the entry. More... | |
void | STB_NVMCloseDirectory (void *dir) |
Closes the directory for reading. More... | |
BOOLEAN | STB_NVMMoveFile (U8BIT *oldname, U8BIT *newname) |
Move/Rename a file or a directory. The original name and the new name may contain a path - the last element being the name. More... | |
enum E_STB_DIR_ENTRY_TYPE |
enum E_STB_DSK_FILE_MODE |
void STB_NVMCloseDirectory | ( | void * | dir | ) |
Closes the directory for reading.
dir | - directory handle |
void STB_NVMCloseFile | ( | void * | file | ) |
Flushes and closes an open file.
file | - The file handle |
Deletes the file.
filename | - pathname of the file to be deleted |
TRUE | if successful, FALSE otherwise |
Returns the size in KB of the given file.
filename | - name of the file in the nvm |
filesize | - returned value giving the file size in KB |
Move/Rename a file or a directory. The original name and the new name may contain a path - the last element being the name.
oldname | Original location name |
newname | New location name |
void* STB_NVMOpenDirectory | ( | U8BIT * | dir_name | ) |
Opens a directory in order to read the entries.
dir_name | - name of the directory to open |
void* STB_NVMOpenFile | ( | U8BIT * | name, |
E_STB_DSK_FILE_MODE | mode | ||
) |
Opens an existing file or creates a new one.
name | - The filename (including path). When the mode is FILE_MODE_OVERWRITE, the directories in the path will be created when they don't exist. |
mode | - The access mode |
BOOLEAN STB_NVMReadDirectory | ( | void * | dir, |
U8BIT * | filename, | ||
U16BIT | filename_len, | ||
E_STB_DIR_ENTRY_TYPE * | entry_type | ||
) |
Reads the next entry from the directory, returning the name of the entry and the type of the entry.
dir | - handle returned when the directory was opened |
filename | - array in which the name is returned |
filename_len | - size of the filename array |
entry_type | - type of entry |
Reads data from an open file.
[in] | file | - The file handle |
[out] | data | - The caller's buffer |
[in] | size | - Number of bytes to be read |