#include <core/DspRomFs.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <file.h>
#include <errno.h>
Classes | |
struct | tsRomFsFile |
Macros | |
#define | MAX_FILENO 21 |
hardcoded max 21 FDS. TODO - make dynamic... | |
#define | ROMFS_OPEN_DEF(X, Y) |
#define | ROMFS_RENAME_DEF(X, Y) |
#define | ROMFS_UNLINK_DEF(X, Y) |
Typedefs | |
typedef int(* | romfs_open )(const char *, unsigned int, int) |
The following compiler gymnastics is due to the fact that the TI file system hooks strip the device name off of the path prior to calling the specified function, so there is no way the support multiple ROMFS devices using the same functions unless you slip in an argument telling the real functions what device they are using... | |
typedef int(* | romfs_rename )(const char *, const char *) |
typedef int(* | romfs_unlink )(const char *) |
typedef int(* | c_romfs_open )(const char *, unsigned int, int) |
typedef int(* | c_romfs_rename )(const char *, const char *) |
typedef int(* | c_romfs_unlink )(const char *) |
typedef int(* | c_romfs_close )(int) |
typedef int(* | c_romfs_read )(int, char *, unsigned int) |
typedef int(* | c_romfs_write )(int, const char *, unsigned int) |
typedef off_t(* | c_romfs_lseek )(int, off_t, int) |
Variables | |
static tsRomFsFile | gaRomFsFiles [MAX_FILENO] |
tcDspRomFs * | gpROMFSDevData [tcDspRomFs::gnMaxRomFileSystems] |
romfs_open | ROMFS_OPEN_ARRAY [tcDspRomFs::gnMaxRomFileSystems] |
romfs_rename | ROMFS_RENAME_ARRAY [tcDspRomFs::gnMaxRomFileSystems] |
romfs_unlink | ROMFS_UNLINK_ARRAY [tcDspRomFs::gnMaxRomFileSystems] |
#define MAX_FILENO 21 |
hardcoded max 21 FDS. TODO - make dynamic...
#define ROMFS_OPEN_DEF | ( | X, | |
Y | |||
) |
#define ROMFS_RENAME_DEF | ( | X, | |
Y | |||
) |
#define ROMFS_UNLINK_DEF | ( | X, | |
Y | |||
) |
typedef int(* romfs_open)(const char *, unsigned int, int) |
The following compiler gymnastics is due to the fact that the TI file system hooks strip the device name off of the path prior to calling the specified function, so there is no way the support multiple ROMFS devices using the same functions unless you slip in an argument telling the real functions what device they are using...
typedef int(* romfs_rename)(const char *, const char *) |
typedef int(* romfs_unlink)(const char *) |
typedef int(* c_romfs_open)(const char *, unsigned int, int) |
typedef int(* c_romfs_rename)(const char *, const char *) |
typedef int(* c_romfs_unlink)(const char *) |
typedef int(* c_romfs_close)(int) |
typedef int(* c_romfs_read)(int, char *, unsigned int) |
typedef int(* c_romfs_write)(int, const char *, unsigned int) |
|
static |
tcDspRomFs* gpROMFSDevData[tcDspRomFs::gnMaxRomFileSystems] |
romfs_open ROMFS_OPEN_ARRAY[tcDspRomFs::gnMaxRomFileSystems] |
romfs_rename ROMFS_RENAME_ARRAY[tcDspRomFs::gnMaxRomFileSystems] |
romfs_unlink ROMFS_UNLINK_ARRAY[tcDspRomFs::gnMaxRomFileSystems] |