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 /apps | |
| parent | 4b6e00d4c9dd886011b64cb18684cb4916b89a13 (diff) | |
| download | rockbox-74eb64257ace75c290e7eb504774a39764529d1d.zip rockbox-74eb64257ace75c290e7eb504774a39764529d1d.tar.gz rockbox-74eb64257ace75c290e7eb504774a39764529d1d.tar.bz2 rockbox-74eb64257ace75c290e7eb504774a39764529d1d.tar.xz | |
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 'apps')
| -rw-r--r-- | apps/tree.c | 1 | ||||
| -rw-r--r-- | apps/tree.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c index 8aa7eb0..09391b3 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -391,6 +391,7 @@ struct entry* load_and_sort_directory(char *dirname, int *dirfilter, break; } dptr->name = &name_buffer[name_buffer_length]; + dptr->time_write = entry->wrtdate<<16 | entry->wrttime; /* in one # */ strcpy(dptr->name,entry->d_name); name_buffer_length += len + 1; diff --git a/apps/tree.h b/apps/tree.h index 367a4fa..a0015b6 100644 --- a/apps/tree.h +++ b/apps/tree.h @@ -23,6 +23,7 @@ struct entry { short attr; /* FAT attributes + file type flags */ + unsigned long time_write; /* Last write time */ char *name; }; |