summaryrefslogtreecommitdiff
path: root/apps/plugins/viewer.c
diff options
context:
space:
mode:
authorSteve Bavin <pondlife@pondlife.me>2008-05-13 09:57:56 +0000
committerSteve Bavin <pondlife@pondlife.me>2008-05-13 09:57:56 +0000
commit652657781805d9cc10d744a49fb23eb17019fbbf (patch)
tree2d1a6ae597a17531f726b57fd9f8cbaa2a46a07f /apps/plugins/viewer.c
parenta94e40d5153ab698fa8a1b6b57d91fcb6acc905e (diff)
downloadrockbox-652657781805d9cc10d744a49fb23eb17019fbbf.tar.gz
rockbox-652657781805d9cc10d744a49fb23eb17019fbbf.zip
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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/viewer.c b/apps/plugins/viewer.c
index 885ac70bea..cd0d3694ba 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 */
357static int draw_columns; /* number of (pixel) columns available for text */ 357static int draw_columns; /* number of (pixel) columns available for text */
358static int par_indent_spaces; /* number of spaces to indent first paragraph */ 358static int par_indent_spaces; /* number of spaces to indent first paragraph */
359static int fd; 359static int fd;
360static char *file_name; 360static const char *file_name;
361static long file_size; 361static long file_size;
362static long start_position; /* position in the file after the viewer is started */ 362static long start_position; /* position in the file after the viewer is started */
363static bool mac_text; 363static bool mac_text;
@@ -368,7 +368,7 @@ static unsigned char *screen_top_ptr;
368static unsigned char *next_screen_ptr; 368static unsigned char *next_screen_ptr;
369static unsigned char *next_screen_to_draw_ptr; 369static unsigned char *next_screen_to_draw_ptr;
370static unsigned char *next_line_ptr; 370static unsigned char *next_line_ptr;
371static struct plugin_api* rb; 371static const struct plugin_api* rb;
372#ifdef HAVE_LCD_BITMAP 372#ifdef HAVE_LCD_BITMAP
373static struct font *pf; 373static struct font *pf;
374#endif 374#endif
@@ -1457,7 +1457,7 @@ static void viewer_menu(void)
1457 viewer_draw(col); 1457 viewer_draw(col);
1458} 1458}
1459 1459
1460enum plugin_status plugin_start(struct plugin_api* api, void* file) 1460enum plugin_status plugin_start(const struct plugin_api* api, const void* file)
1461{ 1461{
1462 int button, i, ok; 1462 int button, i, ok;
1463 int lastbutton = BUTTON_NONE; 1463 int lastbutton = BUTTON_NONE;