summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2008-12-10 08:57:10 +0000
committerMichael Sevakis <jethead71@rockbox.org>2008-12-10 08:57:10 +0000
commit8cfbd3604fac14f629244e521ad24ffa9938c790 (patch)
tree16dc096519b8b537bb7d4b73e0c97f5f33ee752b /apps/plugin.c
parent40ff47c7eea41ac893d7af5c5b97ace52a5ffade (diff)
downloadrockbox-8cfbd3604fac14f629244e521ad24ffa9938c790.tar.gz
rockbox-8cfbd3604fac14f629244e521ad24ffa9938c790.zip
Use cookies for thread identification instead of pointers directly which gives a buffer against wrongly identifying a thread when the slot is recycled (which has been nagging me for awhile). A slot gets 255 uses before it repeats. Everything gets incompatible so a full update is required.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19377 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index de2dd3f7c7..e55ecd46a7 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -146,7 +146,8 @@ static const struct plugin_api rockbox_api = {
146 font_get_width, 146 font_get_width,
147 screen_clear_area, 147 screen_clear_area,
148 gui_scrollbar_draw, 148 gui_scrollbar_draw,
149#endif 149#endif /* HAVE_LCD_BITMAP */
150 get_codepage_name,
150 151
151 backlight_on, 152 backlight_on,
152 backlight_off, 153 backlight_off,
@@ -482,6 +483,7 @@ static const struct plugin_api rockbox_api = {
482 &statusbars, 483 &statusbars,
483 gui_syncstatusbar_draw, 484 gui_syncstatusbar_draw,
484 /* options */ 485 /* options */
486 get_settings_list,
485 find_setting, 487 find_setting,
486 option_screen, 488 option_screen,
487 set_option, 489 set_option,
@@ -619,8 +621,6 @@ static const struct plugin_api rockbox_api = {
619 appsversion, 621 appsversion,
620 /* new stuff at the end, sort into place next time 622 /* new stuff at the end, sort into place next time
621 the API gets incompatible */ 623 the API gets incompatible */
622 get_settings_list,
623 get_codepage_name,
624}; 624};
625 625
626int plugin_load(const char* plugin, const void* parameter) 626int plugin_load(const char* plugin, const void* parameter)