From 2343a1935d70e358ab6bbeda87d0016686eca7a3 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Wed, 3 May 2006 23:16:53 +0000 Subject: 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 --- apps/plugin.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'apps/plugin.h') diff --git a/apps/plugin.h b/apps/plugin.h index 8d451d8f6f..2821beeab9 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 */ -- cgit v1.2.3