summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2003-07-09 22:36:23 +0000
committerBjörn Stenberg <bjorn@haxx.se>2003-07-09 22:36:23 +0000
commit0ef911d43c364fe535111c59abab54e10dc06ce1 (patch)
treeb3987f22b44c8067085e4375ceb0267126effcb2 /apps/plugin.h
parent9f372f1f59524e7228aaddfb685f1eb4a70e35bf (diff)
downloadrockbox-0ef911d43c364fe535111c59abab54e10dc06ce1.tar.gz
rockbox-0ef911d43c364fe535111c59abab54e10dc06ce1.zip
Added widgets and keyboard to plugin api.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3823 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index 45acfaf5d7..12953ebc4d 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 2 40#define PLUGIN_API_VERSION 3
41 41
42/* plugin return codes */ 42/* plugin return codes */
43enum plugin_status { 43enum plugin_status {
@@ -98,6 +98,12 @@ struct plugin_api {
98 int (*lcd_getstringsize)(unsigned char *str, int *w, int *h); 98 int (*lcd_getstringsize)(unsigned char *str, int *w, int *h);
99 void (*lcd_update)(void); 99 void (*lcd_update)(void);
100 void (*lcd_update_rect)(int x, int y, int width, int height); 100 void (*lcd_update_rect)(int x, int y, int width, int height);
101 void (*progressbar)(int x, int y, int width, int height,
102 int percent, int direction);
103 void (*slidebar)(int x, int y, int width, int height,
104 int percent, int direction);
105 void (*scrollbar)(int x, int y, int width, int height, int items,
106 int min_shown, int max_shown, int orientation);
101#ifndef SIMULATOR 107#ifndef SIMULATOR
102 void (*lcd_roll)(int pixels); 108 void (*lcd_roll)(int pixels);
103#endif 109#endif
@@ -151,6 +157,7 @@ struct plugin_api {
151 void (*splash)(int ticks, int keymask, bool center, char *fmt, ...); 157 void (*splash)(int ticks, int keymask, bool center, char *fmt, ...);
152 void (*qsort)(void *base, size_t nmemb, size_t size, 158 void (*qsort)(void *base, size_t nmemb, size_t size,
153 int(*compar)(const void *, const void *)); 159 int(*compar)(const void *, const void *));
160 int (*kbd_input)(char* buffer, int buflen);
154}; 161};
155 162
156/* defined by the plugin loader (plugin.c) */ 163/* defined by the plugin loader (plugin.c) */