From ec6569ed22d27eb6eb5a3902502eecc59d83de7a Mon Sep 17 00:00:00 2001 From: Nicolas Pennequin Date: Sat, 10 Nov 2007 13:26:11 +0000 Subject: Add read_bmp_fd and make the first parameter of read_bmp_file ("filename") const. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15553 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/bmp.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'apps/recorder/bmp.h') diff --git a/apps/recorder/bmp.h b/apps/recorder/bmp.h index f8650b2203..3d33a8c34b 100644 --- a/apps/recorder/bmp.h +++ b/apps/recorder/bmp.h @@ -26,12 +26,17 @@ * read_bmp_file() * * Reads a 8bit BMP file and puts the data in a 1-pixel-per-byte - * array. + * array. * Returns < 0 for error, or number of bytes used from the bitmap buffer * **********************************************/ -int read_bmp_file(char* filename, +int read_bmp_file(const char* filename, struct bitmap *bm, int maxsize, int format); + +int read_bmp_fd(int fd, + struct bitmap *bm, + int maxsize, + int format); #endif -- cgit v1.2.3