summaryrefslogtreecommitdiffstats
path: root/apps/plugin.c
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-11-30 14:50:18 +0000
committerAidan MacDonald <amachronic@protonmail.com>2022-12-17 13:36:38 +0000
commit701e262d3d622898279167ba909da631ac460bc1 (patch)
tree763be2f80bd12dde2b6c743a023ad331959d891b /apps/plugin.c
parent767ddef550ec193c087064291b78d0e1db5e8fb0 (diff)
downloadrockbox-701e262d3d.tar.gz
rockbox-701e262d3d.zip
settings: Remove setting ID return from find_setting()
Now that all users have replaced setting IDs with direct pointers, find_setting() and friends don't need to return an ID value. Change-Id: I8c5c31bb68d3bca5350d43538335265a55fd5517
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index f0667b7e9d..feba0f2cfc 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -669,10 +669,13 @@ static const struct plugin_api rockbox_api = {
tagcache_retrieve,
tagcache_search_finish,
tagcache_get_numeric,
-#if defined(HAVE_TC_RAMCACHE) && defined(HAVE_DIRCACHE)
+ tagcache_get_stat,
+#if defined(HAVE_TC_RAMCACHE)
+ tagcache_is_in_ram,
+#if defined(HAVE_DIRCACHE)
tagcache_fill_tags,
#endif
- tagcache_get_stat,
+#endif
#endif /* HAVE_TAGCACHE */
#ifdef HAVE_ALBUMART
@@ -820,11 +823,6 @@ static const struct plugin_api rockbox_api = {
/* new stuff at the end, sort into place next time
the API gets incompatible */
-#ifdef HAVE_TAGCACHE
-#ifdef HAVE_TC_RAMCACHE
- tagcache_is_in_ram,
-#endif
-#endif
};
static int plugin_buffer_handle;