summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index bdb9c23f22..660f6e9294 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -64,6 +64,8 @@ static int plugin_size = 0;
64static bool (*pfn_tsr_exit)(bool reenter) = NULL; /* TSR exit callback */ 64static bool (*pfn_tsr_exit)(bool reenter) = NULL; /* TSR exit callback */
65static char current_plugin[MAX_PATH]; 65static char current_plugin[MAX_PATH];
66 66
67char *plugin_get_current_filename(void);
68
67extern struct thread_entry threads[MAXTHREADS]; 69extern struct thread_entry threads[MAXTHREADS];
68 70
69static const struct plugin_api rockbox_api = { 71static const struct plugin_api rockbox_api = {
@@ -125,6 +127,7 @@ static const struct plugin_api rockbox_api = {
125 font_get, 127 font_get,
126 font_getstringsize, 128 font_getstringsize,
127 font_get_width, 129 font_get_width,
130 screen_clear_area,
128#endif 131#endif
129 backlight_on, 132 backlight_on,
130 backlight_off, 133 backlight_off,
@@ -445,6 +448,7 @@ static const struct plugin_api rockbox_api = {
445 plugin_get_buffer, 448 plugin_get_buffer,
446 plugin_get_audio_buffer, 449 plugin_get_audio_buffer,
447 plugin_tsr, 450 plugin_tsr,
451 plugin_get_current_filename,
448#ifdef IRAM_STEAL 452#ifdef IRAM_STEAL
449 plugin_iram_init, 453 plugin_iram_init,
450#endif 454#endif
@@ -471,6 +475,8 @@ static const struct plugin_api rockbox_api = {
471#endif 475#endif
472 show_logo, 476 show_logo,
473 tree_get_context, 477 tree_get_context,
478 set_current_file,
479 set_dirfilter,
474 480
475#ifdef HAVE_WHEEL_POSITION 481#ifdef HAVE_WHEEL_POSITION
476 wheel_status, 482 wheel_status,
@@ -495,12 +501,7 @@ static const struct plugin_api rockbox_api = {
495 get_codec_filename, 501 get_codec_filename,
496 get_metadata, 502 get_metadata,
497#endif 503#endif
498#ifdef HAVE_LCD_BITMAP
499 screen_clear_area,
500#endif
501 led, 504 led,
502 set_current_file,
503 set_dirfilter,
504}; 505};
505 506
506int plugin_load(const char* plugin, void* parameter) 507int plugin_load(const char* plugin, void* parameter)
@@ -734,3 +735,8 @@ void plugin_tsr(bool (*exit_callback)(bool))
734{ 735{
735 pfn_tsr_exit = exit_callback; /* remember the callback for later */ 736 pfn_tsr_exit = exit_callback; /* remember the callback for later */
736} 737}
738
739char *plugin_get_current_filename(void)
740{
741 return current_plugin;
742}