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
28
include/grub/bufio.h
Normal file
28
include/grub/bufio.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
/* bufio.h - prototypes for bufio */
|
||||
/*
|
||||
* GRUB -- GRand Unified Bootloader
|
||||
* Copyright (C) 2008 Free Software Foundation, Inc.
|
||||
*
|
||||
* GRUB is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* GRUB is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef GRUB_BUFIO_H
|
||||
#define GRUB_BUFIO_H 1
|
||||
|
||||
#include <grub/file.h>
|
||||
|
||||
grub_file_t grub_bufio_open (grub_file_t io, int size);
|
||||
grub_file_t grub_buffile_open (const char *name, int size);
|
||||
|
||||
#endif /* ! GRUB_BUFIO_H */
|
Loading…
Add table
Add a link
Reference in a new issue