diff options
| author | Nils Wallménius <nils@rockbox.org> | 2009-08-20 16:47:44 +0000 |
|---|---|---|
| committer | Nils Wallménius <nils@rockbox.org> | 2009-08-20 16:47:44 +0000 |
| commit | 3200d04d75c5e7556ed8880b155533e881a4d1e1 (patch) | |
| tree | 188e2c9525b25cb8922a14766e51ab02bad3f831 /apps/plugin.h | |
| parent | 0a1728444882cdbc6a0c815bd88464de25ad94e9 (diff) | |
| download | rockbox-3200d04d75c5e7556ed8880b155533e881a4d1e1.zip rockbox-3200d04d75c5e7556ed8880b155533e881a4d1e1.tar.gz rockbox-3200d04d75c5e7556ed8880b155533e881a4d1e1.tar.bz2 rockbox-3200d04d75c5e7556ed8880b155533e881a4d1e1.tar.xz | |
Make the formatter functions used by the settings return a pointer to avoid usless copying of lang strings, this brought with it a long chain of const correctness and a few random cleanups
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22440 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
| -rw-r--r-- | apps/plugin.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 4cf3192..4981230 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -133,12 +133,12 @@ void* plugin_get_buffer(size_t *buffer_size); #define PLUGIN_MAGIC 0x526F634B /* RocK */ /* increase this every time the api struct changes */ -#define PLUGIN_API_VERSION 170 +#define PLUGIN_API_VERSION 171 /* update this to latest version if a change to the api struct breaks backwards compatibility (and please take the opportunity to sort in any new function which are "waiting" at the end of the function table) */ -#define PLUGIN_MIN_API_VERSION 170 +#define PLUGIN_MIN_API_VERSION 171 /* plugin return codes */ enum plugin_status { @@ -672,7 +672,7 @@ struct plugin_api { bool (*set_int)(const unsigned char* string, const char* unit, int voice_unit, const int* variable, void (*function)(int), int step, int min, int max, - void (*formatter)(char*, size_t, int, const char*) ); + const char* (*formatter)(char*, size_t, int, const char*) ); bool (*set_bool)(const char* string, const bool* variable ); #ifdef HAVE_LCD_COLOR |