diff options
author | Jens Arnold <amiconn@rockbox.org> | 2006-05-03 23:16:53 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2006-05-03 23:16:53 +0000 |
commit | 2343a1935d70e358ab6bbeda87d0016686eca7a3 (patch) | |
tree | 32d33e20bad1176a763520e63c23c785bc153615 /apps/plugin.h | |
parent | 542d9b594212554077b63824eafc4f8a33135881 (diff) | |
download | rockbox-2343a1935d70e358ab6bbeda87d0016686eca7a3.tar.gz rockbox-2343a1935d70e358ab6bbeda87d0016686eca7a3.zip |
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.h | 7 |
1 files changed, 6 insertions, 1 deletions
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 @@ | |||
68 | #include "menu.h" | 68 | #include "menu.h" |
69 | #include "rbunicode.h" | 69 | #include "rbunicode.h" |
70 | #include "list.h" | 70 | #include "list.h" |
71 | #include "talk.h" | ||
71 | 72 | ||
72 | #ifdef HAVE_REMOTE_LCD | 73 | #ifdef HAVE_REMOTE_LCD |
73 | #include "lcd-remote.h" | 74 | #include "lcd-remote.h" |
@@ -103,7 +104,7 @@ | |||
103 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 104 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
104 | 105 | ||
105 | /* increase this every time the api struct changes */ | 106 | /* increase this every time the api struct changes */ |
106 | #define PLUGIN_API_VERSION 20 | 107 | #define PLUGIN_API_VERSION 21 |
107 | 108 | ||
108 | /* update this to latest version if a change to the api struct breaks | 109 | /* update this to latest version if a change to the api struct breaks |
109 | backwards compatibility (and please take the opportunity to sort in any | 110 | backwards compatibility (and please take the opportunity to sort in any |
@@ -515,6 +516,10 @@ struct plugin_api { | |||
515 | void (*lcd_setmargins)(int x, int y); | 516 | void (*lcd_setmargins)(int x, int y); |
516 | #endif | 517 | #endif |
517 | int (*utf8seek)(const unsigned char* utf8, int offset); | 518 | int (*utf8seek)(const unsigned char* utf8, int offset); |
519 | |||
520 | bool (*set_int)(const unsigned char* string, const char* unit, int voice_unit, | ||
521 | int* variable, void (*function)(int), int step, int min, | ||
522 | int max, void (*formatter)(char*, int, int, const char*) ); | ||
518 | }; | 523 | }; |
519 | 524 | ||
520 | /* plugin header */ | 525 | /* plugin header */ |