diff options
Diffstat (limited to 'apps/plugin.c')
-rw-r--r-- | apps/plugin.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 61396b4357..2bf6aa772d 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -72,6 +72,8 @@ | |||
72 | static unsigned char pluginbuf[PLUGIN_BUFFER_SIZE]; | 72 | static unsigned char pluginbuf[PLUGIN_BUFFER_SIZE]; |
73 | void *sim_plugin_load(char *plugin, int *fd); | 73 | void *sim_plugin_load(char *plugin, int *fd); |
74 | void sim_plugin_close(int fd); | 74 | void sim_plugin_close(int fd); |
75 | void sim_lcd_ex_init(int shades, unsigned long (*getpixel)(int, int)); | ||
76 | void sim_lcd_ex_update_rect(int x, int y, int width, int height); | ||
75 | #else | 77 | #else |
76 | #define sim_plugin_close(x) | 78 | #define sim_plugin_close(x) |
77 | extern unsigned char pluginbuf[]; | 79 | extern unsigned char pluginbuf[]; |
@@ -401,6 +403,10 @@ static const struct plugin_api rockbox_api = { | |||
401 | /* new stuff at the end, sort into place next time | 403 | /* new stuff at the end, sort into place next time |
402 | the API gets incompatible */ | 404 | the API gets incompatible */ |
403 | tree_get_context, | 405 | tree_get_context, |
406 | #if defined(SIMULATOR) && defined(HAVE_LCD_BITMAP) && LCD_DEPTH < 8 | ||
407 | sim_lcd_ex_init, | ||
408 | sim_lcd_ex_update_rect, | ||
409 | #endif | ||
404 | }; | 410 | }; |
405 | 411 | ||
406 | int plugin_load(const char* plugin, void* parameter) | 412 | int plugin_load(const char* plugin, void* parameter) |