summaryrefslogtreecommitdiff
path: root/apps/settings.c
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2005-10-07 17:38:05 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2005-10-07 17:38:05 +0000
commitab78b0468088e9011273edc32d59145db9030a7e (patch)
tree5dc785c1f3eec456592b210d1aad39b6f5cf6880 /apps/settings.c
parent86e31d5558704b8ab83d2e5d5c9dca691a5f768a (diff)
downloadrockbox-ab78b0468088e9011273edc32d59145db9030a7e.zip
rockbox-ab78b0468088e9011273edc32d59145db9030a7e.tar.gz
rockbox-ab78b0468088e9011273edc32d59145db9030a7e.tar.bz2
rockbox-ab78b0468088e9011273edc32d59145db9030a7e.tar.xz
Implemented directory caching. No more waiting for disk to spin up while
browsing when cache is enabled (system -> disk -> enable directory cache). Cache building on boot is transparent except the first boot. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7588 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/settings.c b/apps/settings.c
index 5495ca7..6935f35 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -67,6 +67,8 @@
#include "version.h"
#include "rtc.h"
#include "sound.h"
+#include "dircache.h"
+
#if CONFIG_CODEC == MAS3507D
void dac_line_in(bool enable);
#endif
@@ -439,6 +441,10 @@ static const struct bit_entry hd_bits[] =
{8 | SIGNED, S_O(replaygain_preamp), 0, "replaygain preamp", NULL },
{2, S_O(beep), 0, "off,weak,moderate,strong", NULL },
#endif
+#ifdef HAVE_DIRCACHE
+ {1, S_O(dircache), false, "dircache", off_on },
+ {22, S_O(dircache_size), 0, NULL, NULL },
+#endif
/* If values are just added to the end, no need to bump the version. */
/* new stuff to be added at the end */