diff options
| author | Steve Bavin <pondlife@pondlife.me> | 2008-05-13 09:57:56 +0000 |
|---|---|---|
| committer | Steve Bavin <pondlife@pondlife.me> | 2008-05-13 09:57:56 +0000 |
| commit | 652657781805d9cc10d744a49fb23eb17019fbbf (patch) | |
| tree | 2d1a6ae597a17531f726b57fd9f8cbaa2a46a07f /apps/plugins/viewer.c | |
| parent | a94e40d5153ab698fa8a1b6b57d91fcb6acc905e (diff) | |
| download | rockbox-652657781805d9cc10d744a49fb23eb17019fbbf.zip rockbox-652657781805d9cc10d744a49fb23eb17019fbbf.tar.gz rockbox-652657781805d9cc10d744a49fb23eb17019fbbf.tar.bz2 rockbox-652657781805d9cc10d744a49fb23eb17019fbbf.tar.xz | |
Plugin parameters should be const.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17492 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/viewer.c')
| -rw-r--r-- | apps/plugins/viewer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/viewer.c b/apps/plugins/viewer.c index 885ac70..cd0d369 100644 --- a/apps/plugins/viewer.c +++ b/apps/plugins/viewer.c @@ -357,7 +357,7 @@ static int display_lines; /* number of lines on the display */ static int draw_columns; /* number of (pixel) columns available for text */ static int par_indent_spaces; /* number of spaces to indent first paragraph */ static int fd; -static char *file_name; +static const char *file_name; static long file_size; static long start_position; /* position in the file after the viewer is started */ static bool mac_text; @@ -368,7 +368,7 @@ static unsigned char *screen_top_ptr; static unsigned char *next_screen_ptr; static unsigned char *next_screen_to_draw_ptr; static unsigned char *next_line_ptr; -static struct plugin_api* rb; +static const struct plugin_api* rb; #ifdef HAVE_LCD_BITMAP static struct font *pf; #endif @@ -1457,7 +1457,7 @@ static void viewer_menu(void) viewer_draw(col); } -enum plugin_status plugin_start(struct plugin_api* api, void* file) +enum plugin_status plugin_start(const struct plugin_api* api, const void* file) { int button, i, ok; int lastbutton = BUTTON_NONE; |