diff options
Diffstat (limited to 'apps/plugins/lib/grey.h')
-rw-r--r-- | apps/plugins/lib/grey.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/plugins/lib/grey.h b/apps/plugins/lib/grey.h index 5bef88a89a..84b6687de3 100644 --- a/apps/plugins/lib/grey.h +++ b/apps/plugins/lib/grey.h | |||
@@ -36,6 +36,12 @@ | |||
36 | #define GREY_LIGHTGRAY GREY_BRIGHTNESS(170) | 36 | #define GREY_LIGHTGRAY GREY_BRIGHTNESS(170) |
37 | #define GREY_WHITE GREY_BRIGHTNESS(255) | 37 | #define GREY_WHITE GREY_BRIGHTNESS(255) |
38 | 38 | ||
39 | /* Greyscale library management structure declaration. You need one of these | ||
40 | * in every plugin using the library, depending on whether the structure should | ||
41 | * use IRAM or not. */ | ||
42 | #define GREY_INFO_STRUCT struct _grey_info _grey_info; | ||
43 | #define GREY_INFO_STRUCT_IRAM struct _grey_info _grey_info IBSS_ATTR; | ||
44 | |||
39 | /* Library initialisation and release */ | 45 | /* Library initialisation and release */ |
40 | bool grey_init(struct plugin_api* newrb, unsigned char *gbuf, long gbuf_size, | 46 | bool grey_init(struct plugin_api* newrb, unsigned char *gbuf, long gbuf_size, |
41 | bool buffered, int width, int height, long *buf_taken); | 47 | bool buffered, int width, int height, long *buf_taken); |
@@ -148,6 +154,7 @@ struct _grey_info | |||
148 | int bheight; /* 4-pixel or 8-pixel units */ | 154 | int bheight; /* 4-pixel or 8-pixel units */ |
149 | #endif | 155 | #endif |
150 | unsigned long flags; /* various flags, see #defines */ | 156 | unsigned long flags; /* various flags, see #defines */ |
157 | struct plugin_api *rb; /* plugin API pointer */ | ||
151 | #ifndef SIMULATOR | 158 | #ifndef SIMULATOR |
152 | unsigned char *values; /* start of greyscale pixel values */ | 159 | unsigned char *values; /* start of greyscale pixel values */ |
153 | unsigned char *phases; /* start of greyscale pixel phases */ | 160 | unsigned char *phases; /* start of greyscale pixel phases */ |
@@ -162,8 +169,7 @@ struct _grey_info | |||
162 | int curfont; /* current selected font */ | 169 | int curfont; /* current selected font */ |
163 | }; | 170 | }; |
164 | 171 | ||
165 | /* Global variables */ | 172 | /* Global variable, defined in the plugin */ |
166 | extern struct plugin_api *_grey_rb; | ||
167 | extern struct _grey_info _grey_info; | 173 | extern struct _grey_info _grey_info; |
168 | 174 | ||
169 | #endif /* HAVE_LCD_BITMAP && (LCD_DEPTH < 4) */ | 175 | #endif /* HAVE_LCD_BITMAP && (LCD_DEPTH < 4) */ |