From c76c568b351d37c485f78cd185b2d52d54fe7a34 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Mon, 16 Aug 2004 23:37:23 +0000 Subject: Const policed pointer arguments to functions, part 1 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4995 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'apps') diff --git a/apps/plugin.h b/apps/plugin.h index 8ee2534372..d44aa7d60b 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -112,7 +112,7 @@ struct plugin_api { /* lcd */ void (*lcd_clear_display)(void); void (*lcd_puts)(int x, int y, const unsigned char *string); - void (*lcd_puts_scroll)(int x, int y, unsigned char* string); + void (*lcd_puts_scroll)(int x, int y, const unsigned char* string); void (*lcd_stop_scroll)(void); void (*lcd_set_contrast)(int x); #ifdef HAVE_LCD_CHARCELLS @@ -211,7 +211,7 @@ struct plugin_api { /* sound */ void (*mpeg_sound_set)(int setting, int value); #ifndef SIMULATOR - void (*mp3_play_data)(unsigned char* start, int size, void (*get_more)(unsigned char** start, int* size)); + void (*mp3_play_data)(const unsigned char* start, int size, void (*get_more)(unsigned char** start, int* size)); void (*mp3_play_pause)(bool play); void (*mp3_play_stop)(void); bool (*mp3_is_playing)(void); @@ -264,7 +264,7 @@ struct plugin_api { #endif struct user_settings* global_settings; void (*backlight_set_timeout)(int index); - bool (*mp3info)(struct mp3entry *entry, char *filename, bool v1first); + bool (*mp3info)(struct mp3entry *entry, const char *filename, bool v1first); int (*count_mp3_frames)(int fd, int startpos, int filesize, void (*progressfunc)(int)); int (*create_xing_header)(int fd, int startpos, int filesize, @@ -285,7 +285,8 @@ struct plugin_api { int (*peak_meter_get_use_dbfs)(void); #endif #ifdef HAVE_LCD_BITMAP - void (*lcd_puts_scroll_style)(int x, int y, unsigned char* string, int style); + void (*lcd_puts_scroll_style)(int x, int y, const unsigned char* string, + int style); #endif void (*mpeg_flush_and_reload_tracks)(void); int (*strncasecmp)(const char *s1, const char *s2, size_t n); -- cgit v1.2.3