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,6 +23,7 @@
|
|||
#include <grub/types.h>
|
||||
#include <grub/mm.h>
|
||||
#include <grub/font.h>
|
||||
#include <grub/bufio.h>
|
||||
|
||||
struct entry
|
||||
{
|
||||
|
@ -69,7 +70,7 @@ add_font (const char *filename)
|
|||
grub_uint32_t num, i;
|
||||
struct font *font = 0;
|
||||
|
||||
file = grub_file_open (filename);
|
||||
file = grub_buffile_open (filename, 0);
|
||||
if (! file)
|
||||
goto fail;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue