summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index d38cc42..ab570d4 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -79,6 +79,9 @@ void* plugin_get_buffer(size_t *buffer_size);
#ifdef HAVE_LCD_BITMAP
#include "screendump.h"
#include "scrollbar.h"
+#if LCD_DEPTH > 1
+#include "jpeg_load.h"
+#endif
#include "../recorder/bmp.h"
#endif
#include "statusbar.h"
@@ -128,7 +131,7 @@ void* plugin_get_buffer(size_t *buffer_size);
#define PLUGIN_MAGIC 0x526F634B /* RocK */
/* increase this every time the api struct changes */
-#define PLUGIN_API_VERSION 147
+#define PLUGIN_API_VERSION 148
/* update this to latest version if a change to the api struct breaks
backwards compatibility (and please take the opportunity to sort in any
@@ -802,6 +805,11 @@ struct plugin_api {
void (*lcd_pal256_update_pal)(fb_data *palette);
#endif
#endif
+
+#if defined(HAVE_LCD_BITMAP) && LCD_DEPTH > 1
+ int (*read_jpeg_file)(const char* filename, struct bitmap *bm, int maxsize,
+ int format, const struct custom_format *cformat);
+#endif
};
/* plugin header */