summaryrefslogtreecommitdiff
path: root/apps/recorder/bmp.h
diff options
context:
space:
mode:
authorNicolas Pennequin <nicolas.pennequin@free.fr>2007-11-10 13:26:11 +0000
committerNicolas Pennequin <nicolas.pennequin@free.fr>2007-11-10 13:26:11 +0000
commitec6569ed22d27eb6eb5a3902502eecc59d83de7a (patch)
treecd67240c2c3d338dae8ca0fa2adacc09b278af06 /apps/recorder/bmp.h
parentd3ba403f607b744becbd437a4f193c6bda49b6da (diff)
downloadrockbox-ec6569ed22d27eb6eb5a3902502eecc59d83de7a.tar.gz
rockbox-ec6569ed22d27eb6eb5a3902502eecc59d83de7a.zip
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
Diffstat (limited to 'apps/recorder/bmp.h')
-rw-r--r--apps/recorder/bmp.h9
1 files changed, 7 insertions, 2 deletions
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 @@
26 * read_bmp_file() 26 * read_bmp_file()
27 * 27 *
28 * Reads a 8bit BMP file and puts the data in a 1-pixel-per-byte 28 * Reads a 8bit BMP file and puts the data in a 1-pixel-per-byte
29 * array. 29 * array.
30 * Returns < 0 for error, or number of bytes used from the bitmap buffer 30 * Returns < 0 for error, or number of bytes used from the bitmap buffer
31 * 31 *
32 **********************************************/ 32 **********************************************/
33int read_bmp_file(char* filename, 33int read_bmp_file(const char* filename,
34 struct bitmap *bm, 34 struct bitmap *bm,
35 int maxsize, 35 int maxsize,
36 int format); 36 int format);
37
38int read_bmp_fd(int fd,
39 struct bitmap *bm,
40 int maxsize,
41 int format);
37#endif 42#endif