mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Plugin parameters should be const.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17492 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a94e40d515
commit
6526577818
159 changed files with 363 additions and 371 deletions
|
|
@ -99,7 +99,7 @@ static const unsigned char ramsize_table[5] =
|
|||
0, 1, 1, 4, 16
|
||||
};
|
||||
|
||||
static char *romfile;
|
||||
static const char *romfile;
|
||||
static char sramfile[500];
|
||||
static char rtcfile[500];
|
||||
static char saveprefix[500];
|
||||
|
|
@ -284,7 +284,7 @@ void cleanup(void)
|
|||
/* IDEA - if error, write emergency savestate..? */
|
||||
}
|
||||
|
||||
void loader_init(char *s)
|
||||
void loader_init(const char *s)
|
||||
{
|
||||
romfile = s;
|
||||
if(rom_load())
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
#ifndef __LOADER_H__
|
||||
#define __LOADER_H__
|
||||
|
||||
void loader_init(char *s);
|
||||
void loader_init(const char *s);
|
||||
void cleanup(void);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ PLUGIN_IRAM_DECLARE
|
|||
/* here is a 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 */
|
||||
struct plugin_api* rb;
|
||||
const struct plugin_api* rb;
|
||||
int shut,cleanshut;
|
||||
char *errormsg;
|
||||
|
||||
|
|
@ -275,7 +275,7 @@ void doevents(void)
|
|||
}
|
||||
}
|
||||
|
||||
static int gnuboy_main(char *rom)
|
||||
static int gnuboy_main(const char *rom)
|
||||
{
|
||||
rb->lcd_puts(0,0,"Init video");
|
||||
vid_init();
|
||||
|
|
@ -297,7 +297,7 @@ static int gnuboy_main(char *rom)
|
|||
}
|
||||
|
||||
/* this is the 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)
|
||||
{
|
||||
PLUGIN_IRAM_INIT(api)
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
#define malloc(a) my_malloc(a)
|
||||
void *my_malloc(size_t size);
|
||||
|
||||
extern struct plugin_api* rb;
|
||||
extern const struct plugin_api* rb;
|
||||
extern int shut,cleanshut;
|
||||
void vid_init(void);
|
||||
inline void vid_begin(void);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue