diff options
author | inmarket <andrewh@inmarket.com.au> | 2014-08-15 00:31:32 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2014-08-15 00:31:32 +1000 |
commit | 1105e38414fff26d6b1e278ee3bf19b9b981299c (patch) | |
tree | 0492188b192ddddc83595e55e18981dfb01a1fd5 /src/gfile/inc_romfs.c | |
parent | a588740dc3005972892ba7d39d35d1228bc5f0aa (diff) | |
download | uGFX-1105e38414fff26d6b1e278ee3bf19b9b981299c.tar.gz uGFX-1105e38414fff26d6b1e278ee3bf19b9b981299c.tar.bz2 uGFX-1105e38414fff26d6b1e278ee3bf19b9b981299c.zip |
Separate GFILE into separate source files to prevent future name and include file conflicts.
Diffstat (limited to 'src/gfile/inc_romfs.c')
-rw-r--r-- | src/gfile/inc_romfs.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/gfile/inc_romfs.c b/src/gfile/inc_romfs.c index 97d26239..6b7719c7 100644 --- a/src/gfile/inc_romfs.c +++ b/src/gfile/inc_romfs.c @@ -5,14 +5,16 @@ * http://ugfx.org/license.html */ -/** - * This file is included by src/gfile/gfile.c - */ - /******************************************************** - * The ROM file-system VMT + * The ROM file-system ********************************************************/ +#include "gfx.h" + +#if GFX_USE_GFILE && GFILE_NEED_ROMFS + +#include "gfile_fs.h" + #include <string.h> // What directory file formats do we understand @@ -54,8 +56,7 @@ static bool_t ROMEof(GFILE *f); static void ROMFlClose(gfileList *pfl); #endif -static const GFILEVMT FsROMVMT = { - GFILE_CHAINHEAD, // next +const GFILEVMT FsROMVMT = { GFSFLG_CASESENSITIVE|GFSFLG_SEEKABLE|GFSFLG_FAST, // flags 'S', // prefix 0, ROMExists, ROMFilesize, 0, @@ -66,8 +67,6 @@ static const GFILEVMT FsROMVMT = { ROMFlOpen, ROMFlRead, ROMFlClose #endif }; -#undef GFILE_CHAINHEAD -#define GFILE_CHAINHEAD &FsROMVMT static const ROMFS_DIRENTRY *ROMFindFile(const char *fname) { @@ -175,3 +174,5 @@ static bool_t ROMEof(GFILE *f) gfxFree(pfl); } #endif + +#endif //GFX_USE_GFILE && GFILE_NEED_ROMFS |