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
|
|
@ -37,7 +37,7 @@
|
|||
#include "lcd.h"
|
||||
|
||||
/* increase this every time the api struct changes */
|
||||
#define PLUGIN_API_VERSION 1
|
||||
#define PLUGIN_API_VERSION 2
|
||||
|
||||
/* plugin return codes */
|
||||
enum plugin_status {
|
||||
|
|
@ -149,6 +149,8 @@ struct plugin_api {
|
|||
void (*srand)(unsigned int seed);
|
||||
int (*rand)(void);
|
||||
void (*splash)(int ticks, int keymask, bool center, char *fmt, ...);
|
||||
void (*qsort)(void *base, size_t nmemb, size_t size,
|
||||
int(*compar)(const void *, const void *));
|
||||
};
|
||||
|
||||
/* defined by the plugin loader (plugin.c) */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue