diff options
author | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-06-20 16:34:29 +0000 |
---|---|---|
committer | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-06-20 16:34:29 +0000 |
commit | 74eb64257ace75c290e7eb504774a39764529d1d (patch) | |
tree | 6ccbbedbe447f53450a70c0135f8722cae5ef888 /firmware | |
parent | 4b6e00d4c9dd886011b64cb18684cb4916b89a13 (diff) | |
download | rockbox-74eb64257ace75c290e7eb504774a39764529d1d.tar.gz rockbox-74eb64257ace75c290e7eb504774a39764529d1d.zip |
infrastructure for sorting by date+time, now we "only" need to decide on the UI
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4778 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/common/dir.c | 2 | ||||
-rw-r--r-- | firmware/include/dir.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/firmware/common/dir.c b/firmware/common/dir.c index 27666d26e9..1bad9327f6 100644 --- a/firmware/common/dir.c +++ b/firmware/common/dir.c | |||
@@ -113,6 +113,8 @@ struct dirent* readdir(DIR* dir) | |||
113 | theent->attribute = entry.attr; | 113 | theent->attribute = entry.attr; |
114 | theent->size = entry.filesize; | 114 | theent->size = entry.filesize; |
115 | theent->startcluster = entry.firstcluster; | 115 | theent->startcluster = entry.firstcluster; |
116 | theent->wrtdate = entry.wrtdate; | ||
117 | theent->wrttime = entry.wrttime; | ||
116 | 118 | ||
117 | return theent; | 119 | return theent; |
118 | } | 120 | } |
diff --git a/firmware/include/dir.h b/firmware/include/dir.h index ae0aa29cff..00c6664872 100644 --- a/firmware/include/dir.h +++ b/firmware/include/dir.h | |||
@@ -36,6 +36,8 @@ struct dirent { | |||
36 | int attribute; | 36 | int attribute; |
37 | int size; | 37 | int size; |
38 | int startcluster; | 38 | int startcluster; |
39 | unsigned short wrtdate; /* Last write date */ | ||
40 | unsigned short wrttime; /* Last write time */ | ||
39 | }; | 41 | }; |
40 | #endif | 42 | #endif |
41 | 43 | ||