forked from len0rd/rockbox
Added qsort() to plugin api, and subsequently bumped the api version number. Also added a simulator debug printout.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3778 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
020ab8f01e
commit
cf66686aec
2 changed files with 6 additions and 1 deletions
|
@ -33,6 +33,7 @@
|
|||
|
||||
#ifdef SIMULATOR
|
||||
#include <dlfcn.h>
|
||||
#include <debug.h>
|
||||
#define PREFIX(_x_) x11_ ## _x_
|
||||
#else
|
||||
#define PREFIX(_x_) _x_
|
||||
|
@ -118,6 +119,7 @@ static struct plugin_api rockbox_api = {
|
|||
srand,
|
||||
rand,
|
||||
splash,
|
||||
qsort,
|
||||
};
|
||||
|
||||
int plugin_load(char* plugin, void* parameter)
|
||||
|
@ -144,6 +146,7 @@ int plugin_load(char* plugin, void* parameter)
|
|||
if (!pd) {
|
||||
snprintf(buf, sizeof buf, "Can't open %s", plugin);
|
||||
splash(HZ*2, 0, true, buf);
|
||||
DEBUGF("dlopen(%s): %s\n",path,dlerror());
|
||||
dlclose(pd);
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue