summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2003-06-29 21:42:15 +0000
committerBjörn Stenberg <bjorn@haxx.se>2003-06-29 21:42:15 +0000
commitcf66686aec853b7bf4df69087bf20ecfcf15b8b7 (patch)
tree7e003ef194c9e94bb70b88d646e753a9407721de /apps/plugin.h
parent020ab8f01ee369a1955d891e500edfbf22219b49 (diff)
downloadrockbox-cf66686aec853b7bf4df69087bf20ecfcf15b8b7.tar.gz
rockbox-cf66686aec853b7bf4df69087bf20ecfcf15b8b7.zip
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
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index 3b79edefc6..45acfaf5d7 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -37,7 +37,7 @@
37#include "lcd.h" 37#include "lcd.h"
38 38
39/* increase this every time the api struct changes */ 39/* increase this every time the api struct changes */
40#define PLUGIN_API_VERSION 1 40#define PLUGIN_API_VERSION 2
41 41
42/* plugin return codes */ 42/* plugin return codes */
43enum plugin_status { 43enum plugin_status {
@@ -149,6 +149,8 @@ struct plugin_api {
149 void (*srand)(unsigned int seed); 149 void (*srand)(unsigned int seed);
150 int (*rand)(void); 150 int (*rand)(void);
151 void (*splash)(int ticks, int keymask, bool center, char *fmt, ...); 151 void (*splash)(int ticks, int keymask, bool center, char *fmt, ...);
152 void (*qsort)(void *base, size_t nmemb, size_t size,
153 int(*compar)(const void *, const void *));
152}; 154};
153 155
154/* defined by the plugin loader (plugin.c) */ 156/* defined by the plugin loader (plugin.c) */