diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugin.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index d44aa7d60b..53648ad4c7 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -116,7 +116,7 @@ struct plugin_api { | |||
116 | void (*lcd_stop_scroll)(void); | 116 | void (*lcd_stop_scroll)(void); |
117 | void (*lcd_set_contrast)(int x); | 117 | void (*lcd_set_contrast)(int x); |
118 | #ifdef HAVE_LCD_CHARCELLS | 118 | #ifdef HAVE_LCD_CHARCELLS |
119 | void (*lcd_define_pattern)(int which,char *pattern); | 119 | void (*lcd_define_pattern)(int which,const char *pattern); |
120 | unsigned char (*lcd_get_locked_pattern)(void); | 120 | unsigned char (*lcd_get_locked_pattern)(void); |
121 | void (*lcd_unlock_pattern)(unsigned char pat); | 121 | void (*lcd_unlock_pattern)(unsigned char pat); |
122 | void (*lcd_putc)(int x, int y, unsigned short ch); | 122 | void (*lcd_putc)(int x, int y, unsigned short ch); |
@@ -145,7 +145,8 @@ struct plugin_api { | |||
145 | int min_shown, int max_shown, int orientation); | 145 | int min_shown, int max_shown, int orientation); |
146 | void (*checkbox)(int x, int y, int width, int height, bool checked); | 146 | void (*checkbox)(int x, int y, int width, int height, bool checked); |
147 | unsigned char* lcd_framebuffer; | 147 | unsigned char* lcd_framebuffer; |
148 | void (*lcd_blit) (unsigned char* p_data, int x, int y, int width, int height, int stride); | 148 | void (*lcd_blit) (const unsigned char* p_data, int x, int y, int width, |
149 | int height, int stride); | ||
149 | #ifndef SIMULATOR | 150 | #ifndef SIMULATOR |
150 | void (*lcd_roll)(int pixels); | 151 | void (*lcd_roll)(int pixels); |
151 | #endif | 152 | #endif |
@@ -235,7 +236,7 @@ struct plugin_api { | |||
235 | /* MAS communication */ | 236 | /* MAS communication */ |
236 | #ifndef SIMULATOR | 237 | #ifndef SIMULATOR |
237 | int (*mas_readmem)(int bank, int addr, unsigned long* dest, int len); | 238 | int (*mas_readmem)(int bank, int addr, unsigned long* dest, int len); |
238 | int (*mas_writemem)(int bank, int addr, unsigned long* src, int len); | 239 | int (*mas_writemem)(int bank, int addr, const unsigned long* src, int len); |
239 | int (*mas_readreg)(int reg); | 240 | int (*mas_readreg)(int reg); |
240 | int (*mas_writereg)(int reg, unsigned int val); | 241 | int (*mas_writereg)(int reg, unsigned int val); |
241 | #ifdef HAVE_MAS3587F | 242 | #ifdef HAVE_MAS3587F |
@@ -251,7 +252,7 @@ struct plugin_api { | |||
251 | int(*compar)(const void *, const void *)); | 252 | int(*compar)(const void *, const void *)); |
252 | int (*kbd_input)(char* buffer, int buflen); | 253 | int (*kbd_input)(char* buffer, int buflen); |
253 | struct tm* (*get_time)(void); | 254 | struct tm* (*get_time)(void); |
254 | int (*set_time)(struct tm *tm); | 255 | int (*set_time)(const struct tm *tm); |
255 | void* (*plugin_get_buffer)(int* buffer_size); | 256 | void* (*plugin_get_buffer)(int* buffer_size); |
256 | void* (*plugin_get_mp3_buffer)(int* buffer_size); | 257 | void* (*plugin_get_mp3_buffer)(int* buffer_size); |
257 | #ifndef SIMULATOR | 258 | #ifndef SIMULATOR |