summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
authorAndrew Mahone <andrew.mahone@gmail.com>2009-05-02 03:47:46 +0000
committerAndrew Mahone <andrew.mahone@gmail.com>2009-05-02 03:47:46 +0000
commit3d4c68bb060bc926a1da72d6c00b86ebb87857c7 (patch)
tree4a49d1671ca28faa5e06c1851b6b6de41969e4fc /apps/plugin.c
parent75f2629778a55d5b59ecb57e326879964610b063 (diff)
downloadrockbox-3d4c68bb060bc926a1da72d6c00b86ebb87857c7.zip
rockbox-3d4c68bb060bc926a1da72d6c00b86ebb87857c7.tar.gz
rockbox-3d4c68bb060bc926a1da72d6c00b86ebb87857c7.tar.bz2
rockbox-3d4c68bb060bc926a1da72d6c00b86ebb87857c7.tar.xz
Add read_<image>_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
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c6
1 files changed, 5 insertions, 1 deletions
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
};