diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-10-22 15:06:08 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-10-22 15:06:08 +0000 |
commit | 46ddacf533b2b154373f0ac98c85b4ac172ccfa6 (patch) | |
tree | db40164976c9993e1b12a60bb63320a0aa382390 /firmware/drivers/fat.h | |
parent | a901c3a433125a939bef9caf6a8219f97f395fc7 (diff) | |
download | rockbox-46ddacf533b2b154373f0ac98c85b4ac172ccfa6.tar.gz rockbox-46ddacf533b2b154373f0ac98c85b4ac172ccfa6.zip |
Fat32 write updates: Nixed some bugs. Basic file creation now works. Todo: Long filenames and extensive test cases.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2742 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/fat.h')
-rw-r--r-- | firmware/drivers/fat.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/drivers/fat.h b/firmware/drivers/fat.h index 3052488c5a..1316202a6c 100644 --- a/firmware/drivers/fat.h +++ b/firmware/drivers/fat.h | |||
@@ -58,8 +58,8 @@ struct fat_dir | |||
58 | struct fat_file | 58 | struct fat_file |
59 | { | 59 | { |
60 | int firstcluster; /* first cluster in file */ | 60 | int firstcluster; /* first cluster in file */ |
61 | int nextcluster; /* cluster of last access */ | 61 | int lastcluster; /* cluster of last access */ |
62 | int nextsector; /* sector of last access */ | 62 | int lastsector; /* sector of last access */ |
63 | int sectornum; /* sector number in this cluster */ | 63 | int sectornum; /* sector number in this cluster */ |
64 | int dirsector; /* sector where the dir entry is located */ | 64 | int dirsector; /* sector where the dir entry is located */ |
65 | int direntry; /* dir entry index in sector */ | 65 | int direntry; /* dir entry index in sector */ |
@@ -79,6 +79,7 @@ extern int fat_readwrite(struct fat_file *ent, int sectorcount, | |||
79 | void* buf, bool write ); | 79 | void* buf, bool write ); |
80 | extern int fat_closewrite(struct fat_file *ent, int size); | 80 | extern int fat_closewrite(struct fat_file *ent, int size); |
81 | extern int fat_seek(struct fat_file *ent, int sector ); | 81 | extern int fat_seek(struct fat_file *ent, int sector ); |
82 | extern int fat_remove(struct fat_file *ent); | ||
82 | 83 | ||
83 | extern int fat_opendir(struct fat_dir *ent, unsigned int currdir); | 84 | extern int fat_opendir(struct fat_dir *ent, unsigned int currdir); |
84 | extern int fat_getnext(struct fat_dir *ent, struct fat_direntry *entry); | 85 | extern int fat_getnext(struct fat_dir *ent, struct fat_direntry *entry); |