diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-11-13 23:16:32 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-11-13 23:16:32 +0000 |
commit | 1f214f2732ee2b894ab1937882da6cbd3b7e4755 (patch) | |
tree | d6fb20e3ea7041f8bbc342104451b903bf3ea132 /firmware/drivers/fat.h | |
parent | 71d346ce8112c46bd794ef1f6082c1abb61c3156 (diff) | |
download | rockbox-1f214f2732ee2b894ab1937882da6cbd3b7e4755.tar.gz rockbox-1f214f2732ee2b894ab1937882da6cbd3b7e4755.zip |
Directories are now handled as files, using fat_readwrite() instead of ata_read/write_sector().
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2844 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/fat.h')
-rw-r--r-- | firmware/drivers/fat.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/drivers/fat.h b/firmware/drivers/fat.h index 8ef2982279..4e5397f806 100644 --- a/firmware/drivers/fat.h +++ b/firmware/drivers/fat.h | |||
@@ -54,6 +54,7 @@ struct fat_file | |||
54 | int sectornum; /* sector number in this cluster */ | 54 | int sectornum; /* sector number in this cluster */ |
55 | int dirsector; /* sector where the dir entry is located */ | 55 | int dirsector; /* sector where the dir entry is located */ |
56 | int direntry; /* dir entry index in sector */ | 56 | int direntry; /* dir entry index in sector */ |
57 | bool eof; | ||
57 | }; | 58 | }; |
58 | 59 | ||
59 | struct fat_dir | 60 | struct fat_dir |
@@ -63,6 +64,7 @@ struct fat_dir | |||
63 | int num_sec; | 64 | int num_sec; |
64 | unsigned char cached_buf[SECTOR_SIZE]; | 65 | unsigned char cached_buf[SECTOR_SIZE]; |
65 | int startcluster; | 66 | int startcluster; |
67 | struct fat_file file; | ||
66 | }; | 68 | }; |
67 | 69 | ||
68 | 70 | ||