forked from len0rd/rockbox
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
|
@ -50,7 +50,7 @@
|
|||
#define GREY_ON_COP 0x0004 /* Run ISR on COP (PP targets) */
|
||||
|
||||
/* Library initialisation and release */
|
||||
bool grey_init(struct plugin_api* newrb, unsigned char *gbuf, long gbuf_size,
|
||||
bool grey_init(const struct plugin_api* newrb, unsigned char *gbuf, long gbuf_size,
|
||||
unsigned features, int width, int height, long *buf_taken);
|
||||
void grey_release(void);
|
||||
|
||||
|
@ -168,16 +168,16 @@ struct _grey_info
|
|||
int by; /* 4-pixel or 8-pixel units */
|
||||
int bheight; /* 4-pixel or 8-pixel units */
|
||||
#endif
|
||||
unsigned long flags; /* various flags, see #defines */
|
||||
struct plugin_api *rb; /* plugin API pointer */
|
||||
unsigned char *values; /* start of greyscale pixel values */
|
||||
unsigned char *phases; /* start of greyscale pixel phases */
|
||||
unsigned char *buffer; /* start of chunky pixel buffer (for buffered mode) */
|
||||
unsigned char gvalue[256]; /* calculated brightness -> greyvalue table */
|
||||
int fg_brightness; /* current foreground brightness */
|
||||
int bg_brightness; /* current background brightness */
|
||||
int drawmode; /* current draw mode */
|
||||
int curfont; /* current selected font */
|
||||
unsigned long flags; /* various flags, see #defines */
|
||||
const struct plugin_api *rb; /* plugin API pointer */
|
||||
unsigned char *values; /* start of greyscale pixel values */
|
||||
unsigned char *phases; /* start of greyscale pixel phases */
|
||||
unsigned char *buffer; /* start of chunky pixel buffer (for buffered mode) */
|
||||
unsigned char gvalue[256]; /* calculated brightness -> greyvalue table */
|
||||
int fg_brightness; /* current foreground brightness */
|
||||
int bg_brightness; /* current background brightness */
|
||||
int drawmode; /* current draw mode */
|
||||
int curfont; /* current selected font */
|
||||
};
|
||||
|
||||
/* Global variable, defined in the plugin */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue