summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 6366580a56..020bf61b1a 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -33,6 +33,7 @@
33 33
34#ifdef SIMULATOR 34#ifdef SIMULATOR
35#include <dlfcn.h> 35#include <dlfcn.h>
36#include <debug.h>
36#define PREFIX(_x_) x11_ ## _x_ 37#define PREFIX(_x_) x11_ ## _x_
37#else 38#else
38#define PREFIX(_x_) _x_ 39#define PREFIX(_x_) _x_
@@ -118,6 +119,7 @@ static struct plugin_api rockbox_api = {
118 srand, 119 srand,
119 rand, 120 rand,
120 splash, 121 splash,
122 qsort,
121}; 123};
122 124
123int plugin_load(char* plugin, void* parameter) 125int plugin_load(char* plugin, void* parameter)
@@ -144,6 +146,7 @@ int plugin_load(char* plugin, void* parameter)
144 if (!pd) { 146 if (!pd) {
145 snprintf(buf, sizeof buf, "Can't open %s", plugin); 147 snprintf(buf, sizeof buf, "Can't open %s", plugin);
146 splash(HZ*2, 0, true, buf); 148 splash(HZ*2, 0, true, buf);
149 DEBUGF("dlopen(%s): %s\n",path,dlerror());
147 dlclose(pd); 150 dlclose(pd);
148 return -1; 151 return -1;
149 } 152 }