summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2004-08-17 01:45:48 +0000
committerJens Arnold <amiconn@rockbox.org>2004-08-17 01:45:48 +0000
commit0ceaa5e365b3f6dc78269ed5c4cd43df5c0144eb (patch)
tree7fe6cbadea41f09765b631794b71d65fdbbbffbc /apps/plugin.h
parentc76c568b351d37c485f78cd185b2d52d54fe7a34 (diff)
downloadrockbox-0ceaa5e365b3f6dc78269ed5c4cd43df5c0144eb.zip
rockbox-0ceaa5e365b3f6dc78269ed5c4cd43df5c0144eb.tar.gz
rockbox-0ceaa5e365b3f6dc78269ed5c4cd43df5c0144eb.tar.bz2
rockbox-0ceaa5e365b3f6dc78269ed5c4cd43df5c0144eb.tar.xz
Const policed pointer arguments to functions, part 2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4996 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index d44aa7d..53648ad 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -116,7 +116,7 @@ struct plugin_api {
void (*lcd_stop_scroll)(void);
void (*lcd_set_contrast)(int x);
#ifdef HAVE_LCD_CHARCELLS
- void (*lcd_define_pattern)(int which,char *pattern);
+ void (*lcd_define_pattern)(int which,const char *pattern);
unsigned char (*lcd_get_locked_pattern)(void);
void (*lcd_unlock_pattern)(unsigned char pat);
void (*lcd_putc)(int x, int y, unsigned short ch);
@@ -145,7 +145,8 @@ struct plugin_api {
int min_shown, int max_shown, int orientation);
void (*checkbox)(int x, int y, int width, int height, bool checked);
unsigned char* lcd_framebuffer;
- void (*lcd_blit) (unsigned char* p_data, int x, int y, int width, int height, int stride);
+ void (*lcd_blit) (const unsigned char* p_data, int x, int y, int width,
+ int height, int stride);
#ifndef SIMULATOR
void (*lcd_roll)(int pixels);
#endif
@@ -235,7 +236,7 @@ struct plugin_api {
/* MAS communication */
#ifndef SIMULATOR
int (*mas_readmem)(int bank, int addr, unsigned long* dest, int len);
- int (*mas_writemem)(int bank, int addr, unsigned long* src, int len);
+ int (*mas_writemem)(int bank, int addr, const unsigned long* src, int len);
int (*mas_readreg)(int reg);
int (*mas_writereg)(int reg, unsigned int val);
#ifdef HAVE_MAS3587F
@@ -251,7 +252,7 @@ struct plugin_api {
int(*compar)(const void *, const void *));
int (*kbd_input)(char* buffer, int buflen);
struct tm* (*get_time)(void);
- int (*set_time)(struct tm *tm);
+ int (*set_time)(const struct tm *tm);
void* (*plugin_get_buffer)(int* buffer_size);
void* (*plugin_get_mp3_buffer)(int* buffer_size);
#ifndef SIMULATOR