[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Handler support
From: |
Bean |
Subject: |
Re: [PATCH] Handler support |
Date: |
Mon, 23 Feb 2009 03:40:52 +0800 |
Hi,
Any comment about this ?
On Sun, Feb 15, 2009 at 11:14 PM, Bean <address@hidden> wrote:
> Hi,
>
> The new version contains the following changes:
>
> 1, The handler module register commands terminal_input and
> terminal_output. This is for backward compatible of grub.cfg.
> Currently, the commands are registered manually, but this process
> could be automated with a new command interface design.
>
> 2, Add a new class, grub_named_list, which represents a named list:
>
> struct grub_named_list
> {
> struct grub_named_list *next;
> const char *name;
> };
>
> it also introduce a new function, grub_named_list_find, which can be
> used to lookup a object by name.
>
> The relationship between different class:
>
> list - named list + - handler + - terminal input
> | |
> | + - terminal output
> + - handler class
>
> You can use macros like GRUB_AS_LIST, GRUB_AS_NAMED_LIST and
> GRUB_AS_HANDLER to cast pointer of a certain class to its ancestors.
>
> --
> Bean
>
--
Bean
- [PATCH] Handler support, Bean, 2009/02/12
- Re: [PATCH] Handler support, Bean, 2009/02/14
- Re: [PATCH] Handler support, Felix Zielcke, 2009/02/14
- Re: [PATCH] Handler support, Bean, 2009/02/14
- Re: [PATCH] Handler support, Vesa Jääskeläinen, 2009/02/15
- Re: [PATCH] Handler support, Bean, 2009/02/15
- Re: [PATCH] Handler support, Bean, 2009/02/15
- Re: [PATCH] Handler support,
Bean <=
- Re: [PATCH] Handler support, Robert Millan, 2009/02/27
- Re: [PATCH] Handler support, Bean, 2009/02/28