From 3d4c68bb060bc926a1da72d6c00b86ebb87857c7 Mon Sep 17 00:00:00 2001 From: Andrew Mahone Date: Sat, 2 May 2009 03:47:46 +0000 Subject: Add read__fd functions to plugin API, add feature_wrappers.h handling for them, and add read_image.[ch] wrapper for reading image files with automatic type detection. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20840 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apps/plugin.c') diff --git a/apps/plugin.c b/apps/plugin.c index 7ebb2aa..33a6194 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -643,8 +643,12 @@ static const struct plugin_api rockbox_api = { lcd_pal256_update_pal, #endif #endif -#if defined(HAVE_LCD_BITMAP) && LCD_DEPTH > 1 +#ifdef HAVE_LCD_BITMAP +#if LCD_DEPTH > 1 read_jpeg_file, + read_jpeg_fd, +#endif + read_bmp_fd, #endif }; -- cgit v1.1