summaryrefslogtreecommitdiffstats
path: root/apps/plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 2066d3a108..749132cde8 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -21,6 +21,7 @@
#define DIRFUNCTIONS_DEFINED
#define FILEFUNCTIONS_DEFINED
#include "plugin.h"
+#include "open_plugin.h"
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
@@ -807,6 +808,7 @@ static const struct plugin_api rockbox_api = {
#ifdef HAVE_TAGCACHE
tagcache_get_stat,
#endif
+ plugin_open,
};
static int plugin_buffer_handle;
@@ -1019,6 +1021,12 @@ static void plugin_tsr(bool (*exit_callback)(bool))
pfn_tsr_exit = exit_callback; /* remember the callback for later */
}
+int plugin_open(char *plugin, char *parameter)
+{
+ open_plugin_add_path(ID2P(LANG_OPEN_PLUGIN), plugin, parameter);
+ return PLUGIN_GOTO_PLUGIN;
+}
+
char *plugin_get_current_filename(void)
{
return current_plugin;