summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-05-03 23:16:53 +0000
committerJens Arnold <amiconn@rockbox.org>2006-05-03 23:16:53 +0000
commit2343a1935d70e358ab6bbeda87d0016686eca7a3 (patch)
tree32d33e20bad1176a763520e63c23c785bc153615 /apps/plugin.h
parent542d9b594212554077b63824eafc4f8a33135881 (diff)
downloadrockbox-2343a1935d70e358ab6bbeda87d0016686eca7a3.zip
rockbox-2343a1935d70e358ab6bbeda87d0016686eca7a3.tar.gz
rockbox-2343a1935d70e358ab6bbeda87d0016686eca7a3.tar.bz2
rockbox-2343a1935d70e358ab6bbeda87d0016686eca7a3.tar.xz
Text viewer: * Only show those options which really exist. * Basic button functions now available on all targets. * Implemented option setting in a more straightforward way (like the core options menus).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9874 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index 8d451d8..2821bee 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -68,6 +68,7 @@
#include "menu.h"
#include "rbunicode.h"
#include "list.h"
+#include "talk.h"
#ifdef HAVE_REMOTE_LCD
#include "lcd-remote.h"
@@ -103,7 +104,7 @@
#define PLUGIN_MAGIC 0x526F634B /* RocK */
/* increase this every time the api struct changes */
-#define PLUGIN_API_VERSION 20
+#define PLUGIN_API_VERSION 21
/* update this to latest version if a change to the api struct breaks
backwards compatibility (and please take the opportunity to sort in any
@@ -515,6 +516,10 @@ struct plugin_api {
void (*lcd_setmargins)(int x, int y);
#endif
int (*utf8seek)(const unsigned char* utf8, int offset);
+
+ bool (*set_int)(const unsigned char* string, const char* unit, int voice_unit,
+ int* variable, void (*function)(int), int step, int min,
+ int max, void (*formatter)(char*, int, int, const char*) );
};
/* plugin header */