Database: Support for multiple search roots.
commit63d27626e417f0e80b649ca366e79ba92473a6d4
authorThomas Martitz <kugel@rockbox.org>
Wed, 18 Jul 2012 21:36:57 +0000 (18 23:36 +0200)
committerThomas Martitz <kugel@rockbox.org>
Mon, 30 Jul 2012 19:20:51 +0000 (30 21:20 +0200)
treeb52d8bafc7d47279af5b763876121b63790324d6
parent0a645d212c226da8f85b23125fb192fb94829628
Database: Support for multiple search roots.

Support multiple roots (i.e. scan folders) using the new folder_select()
function.

Amaximum of 12 dirs can be selected, however the setting (i.e. the entire
folder list) cannot be longer than 80 chars.

The setting works similar to the autoresume dirs: Directories are seperated
by colons, e.g. "/Music:/Podcasts". Default is "/sdcard" on android, "/" on
all other targets.

Changes are made to the multiple-root logic in tagcache.c. This is to
a) provide the logic at all on native targets and b) support more than
one root before the scan even starts (until now it was used to add roots
during scan due to symlinks).

Change-Id: I64992c0678324536e8e64cd4427c8abbd8e8b39e
apps/lang/english.lang
apps/menus/settings_menu.c
apps/settings.h
apps/settings_list.c
apps/tagcache.c
apps/tagcache.h