2008-08-01 Bean <bean123ch@gmail.com>
* conf/common.rmk (pkglib_MODULES): Add bufio.mod. (bufio_mod_SOURCES): New macro. (bufio_mod_CFLAGS): Likewise. (bufio_mod_LDFLAGS): Likewise. * include/grub/bufio.h: New file. * io/bufio.c: Likewise. * video/png.c: Replace <grub/file.h> with <grub/bufio.h>. (grub_video_reader_png): Use grub_buffile_open to open file. * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>. (grub_video_reader_jpeg): Use grub_buffile_open to open file. * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>. (grub_video_reader_tga): Use grub_buffile_open to open file. * font/manager.c: Include <grub/bufio.h>. (add_font): Use grub_buffile_open to open file.
This commit is contained in:
parent
3d8383e7a5
commit
9175e93d11
9 changed files with 328 additions and 9 deletions
|
@ -23,7 +23,7 @@
|
|||
#include <grub/mm.h>
|
||||
#include <grub/misc.h>
|
||||
#include <grub/arg.h>
|
||||
#include <grub/file.h>
|
||||
#include <grub/bufio.h>
|
||||
|
||||
/* Uncomment following define to enable JPEG debug. */
|
||||
//#define JPEG_DEBUG
|
||||
|
@ -664,7 +664,7 @@ grub_video_reader_jpeg (struct grub_video_bitmap **bitmap,
|
|||
grub_file_t file;
|
||||
struct grub_jpeg_data *data;
|
||||
|
||||
file = grub_file_open (filename);
|
||||
file = grub_buffile_open (filename, 0);
|
||||
if (!file)
|
||||
return grub_errno;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue