grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] buffered file read


From: Bean
Subject: [PATCH] buffered file read
Date: Mon, 28 Jul 2008 01:52:40 +0800

Hi,

This patch add a new module bufio, which reads block of data at a
time, and return the required range to the upper level. This is
extremely useful in modules like png, where data are normally read one
byte at a time.

To use buffered io service, just include header file <grub/bufio.h>,
and replace grub_file_open with grub_buffile_open.

Changelog:

2008-07-27  Bean  <address@hidden>
        
        * 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 (grub_video_reader_png): Use grub_buffile_open to open
        file.

        * video/jpeg.c (grub_video_reader_jpeg): Likewise.

        * video/tga.c (grub_video_reader_tga): Likewise.

-- 
Bean

Attachment: bufio.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]