From fda7d720c05b4a756f045e0c0f4afe9630edb5c5 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Mon, 6 Aug 2007 13:42:52 +0000 Subject: Accept FS#5464 - organise the rocks directory. If any plugins or "open with" optoins dont work please let me know... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14214 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'apps/plugin.c') diff --git a/apps/plugin.c b/apps/plugin.c index bdb9c23..660f6e9 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -64,6 +64,8 @@ static int plugin_size = 0; static bool (*pfn_tsr_exit)(bool reenter) = NULL; /* TSR exit callback */ static char current_plugin[MAX_PATH]; +char *plugin_get_current_filename(void); + extern struct thread_entry threads[MAXTHREADS]; static const struct plugin_api rockbox_api = { @@ -125,6 +127,7 @@ static const struct plugin_api rockbox_api = { font_get, font_getstringsize, font_get_width, + screen_clear_area, #endif backlight_on, backlight_off, @@ -445,6 +448,7 @@ static const struct plugin_api rockbox_api = { plugin_get_buffer, plugin_get_audio_buffer, plugin_tsr, + plugin_get_current_filename, #ifdef IRAM_STEAL plugin_iram_init, #endif @@ -471,6 +475,8 @@ static const struct plugin_api rockbox_api = { #endif show_logo, tree_get_context, + set_current_file, + set_dirfilter, #ifdef HAVE_WHEEL_POSITION wheel_status, @@ -495,12 +501,7 @@ static const struct plugin_api rockbox_api = { get_codec_filename, get_metadata, #endif -#ifdef HAVE_LCD_BITMAP - screen_clear_area, -#endif led, - set_current_file, - set_dirfilter, }; int plugin_load(const char* plugin, void* parameter) @@ -734,3 +735,8 @@ void plugin_tsr(bool (*exit_callback)(bool)) { pfn_tsr_exit = exit_callback; /* remember the callback for later */ } + +char *plugin_get_current_filename(void) +{ + return current_plugin; +} -- cgit v1.1