summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
authorAndrew Mahone <andrew.mahone@gmail.com>2009-06-01 21:08:49 +0000
committerAndrew Mahone <andrew.mahone@gmail.com>2009-06-01 21:08:49 +0000
commitc1c3d05961388114779c6fd8316ab1d081a3b4b1 (patch)
treeabd18c238922d61233346d107eae087f5283bd2d /apps/plugin.c
parentfd11471a3f9bfbb5f5bdf22866e861bae56ad8ea (diff)
Fix PF keymap issue caused by conflict between new CONTEXT_PLUGIN and ALLOW_SOFTLOCK, by changing value of ALLOW_SOFTLOCK. Bump min plugin version as value passed to a core function changed, and sort plugin API.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21161 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index eba2c28b33..c4e5a0bb0f 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -461,6 +461,12 @@ static const struct plugin_api rockbox_api = {
playlist_amount,
playlist_resume,
playlist_start,
+ playlist_add,
+ playlist_sync,
+ playlist_remove_all_tracks,
+ playlist_create,
+ playlist_insert_track,
+ playlist_shuffle,
PREFIX(audio_play),
audio_stop,
audio_pause,
@@ -516,6 +522,9 @@ static const struct plugin_api rockbox_api = {
/* action handling */
get_custom_action,
get_action,
+#ifdef HAVE_TOUCHSCREEN
+ action_get_touchscreen_press,
+#endif
action_userabort,
/* power */
@@ -628,6 +637,9 @@ static const struct plugin_api rockbox_api = {
tagcache_retrieve,
tagcache_search_finish,
tagcache_get_numeric,
+#ifdef HAVE_TC_RAMCACHE
+ tagcache_fill_tags,
+#endif
#endif
#ifdef HAVE_ALBUMART
@@ -644,19 +656,6 @@ static const struct plugin_api rockbox_api = {
appsversion,
/* new stuff at the end, sort into place next time
the API gets incompatible */
-
-#ifdef HAVE_TOUCHSCREEN
- action_get_touchscreen_press,
-#endif
-#if defined(HAVE_TAGCACHE) && defined(HAVE_TC_RAMCACHE)
- tagcache_fill_tags,
-#endif
- playlist_add,
- playlist_sync,
- playlist_remove_all_tracks,
- playlist_create,
- playlist_insert_track,
- playlist_shuffle,
};
int plugin_load(const char* plugin, const void* parameter)