From 652657781805d9cc10d744a49fb23eb17019fbbf Mon Sep 17 00:00:00 2001 From: Steve Bavin Date: Tue, 13 May 2008 09:57:56 +0000 Subject: Plugin parameters should be const. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17492 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/reversi/reversi-game.h | 2 +- apps/plugins/reversi/reversi-gui.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/plugins/reversi') diff --git a/apps/plugins/reversi/reversi-game.h b/apps/plugins/reversi/reversi-game.h index de05df78f9..9558f000bf 100644 --- a/apps/plugins/reversi/reversi-game.h +++ b/apps/plugins/reversi/reversi-game.h @@ -58,7 +58,7 @@ typedef struct _reversi_board_t { */ move_t history[BOARD_SIZE*BOARD_SIZE - INIT_STONES]; - struct plugin_api *rb; + const struct plugin_api *rb; } reversi_board_t; diff --git a/apps/plugins/reversi/reversi-gui.c b/apps/plugins/reversi/reversi-gui.c index 1995923f4f..a7e695529b 100644 --- a/apps/plugins/reversi/reversi-gui.c +++ b/apps/plugins/reversi/reversi-gui.c @@ -52,7 +52,7 @@ PLUGIN_HEADER /* The global api struct pointer. While not strictly necessary, it's nice not to have to pass the api pointer in all function calls in the plugin */ -static struct plugin_api* rb; +static const struct plugin_api* rb; /* Thickness of the grid lines */ #define LINE_THCK 1 @@ -543,7 +543,7 @@ static void reversi_gui_move_cursor(int new_row, int new_col) { /* plugin entry point */ -enum plugin_status plugin_start(struct plugin_api *api, void *parameter) { +enum plugin_status plugin_start(const struct plugin_api *api, const void *parameter) { bool exit, draw_screen; int button; int lastbutton = BUTTON_NONE; -- cgit v1.2.3