From 74eb64257ace75c290e7eb504774a39764529d1d Mon Sep 17 00:00:00 2001 From: Jörg Hohensohn Date: Sun, 20 Jun 2004 16:34:29 +0000 Subject: 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 --- firmware/common/dir.c | 2 ++ firmware/include/dir.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'firmware') 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) theent->attribute = entry.attr; theent->size = entry.filesize; theent->startcluster = entry.firstcluster; + theent->wrtdate = entry.wrtdate; + theent->wrttime = entry.wrttime; return theent; } 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 { int attribute; int size; int startcluster; + unsigned short wrtdate; /* Last write date */ + unsigned short wrttime; /* Last write time */ }; #endif -- cgit v1.2.3