From a5e77d8f943e602c56036f0f21b60b7f442a3976 Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Thu, 31 Oct 2002 16:09:28 +0000 Subject: Fat writing update. File creation now works, though still only short filenames. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2790 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/fat.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'firmware/drivers/fat.h') diff --git a/firmware/drivers/fat.h b/firmware/drivers/fat.h index 1316202a6c..6ed68ad8d8 100644 --- a/firmware/drivers/fat.h +++ b/firmware/drivers/fat.h @@ -46,15 +46,6 @@ struct fat_direntry #define FAT_ATTR_DIRECTORY 0x10 #define FAT_ATTR_ARCHIVE 0x20 -struct fat_dir -{ - int entry; - int cached_sec; - int num_sec; - unsigned char cached_buf[SECTOR_SIZE]; - int startcluster; -}; - struct fat_file { int firstcluster; /* first cluster in file */ @@ -65,6 +56,16 @@ struct fat_file int direntry; /* dir entry index in sector */ }; +struct fat_dir +{ + int entry; + int cached_sec; + int num_sec; + unsigned char cached_buf[SECTOR_SIZE]; + int startcluster; +}; + + extern int fat_mount(int startsector); extern int fat_create_dir(unsigned int currdir, char *name); -- cgit v1.2.3