/[grub]/grub2/include/grub/normal.h
ViewVC logotype

Diff of /grub2/include/grub/normal.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15 by okuji, Wed Mar 2 20:12:46 2005 UTC revision 1.16 by okuji, Tue Mar 8 01:01:06 2005 UTC
# Line 1  Line 1 
1  /* normal.h - prototypes for the normal mode */  /* normal.h - prototypes for the normal mode */
2  /*  /*
3   *  GRUB  --  GRand Unified Bootloader   *  GRUB  --  GRand Unified Bootloader
4   *  Copyright (C) 2002,2003  Free Software Foundation, Inc.   *  Copyright (C) 2002,2003,2005  Free Software Foundation, Inc.
5   *   *
6   *  This program is free software; you can redistribute it and/or modify   *  This program is free software; you can redistribute it and/or modify
7   *  it under the terms of the GNU General Public License as published by   *  it under the terms of the GNU General Public License as published by
# Line 41  Line 41 
41  #define GRUB_COMMAND_FLAG_NO_ECHO       0x8  #define GRUB_COMMAND_FLAG_NO_ECHO       0x8
42  /* Don't print the command on booting.  */  /* Don't print the command on booting.  */
43  #define GRUB_COMMAND_FLAG_NO_ARG_PARSE  0x10  #define GRUB_COMMAND_FLAG_NO_ARG_PARSE  0x10
44    /* Not loaded yet. Used for auto-loading.  */
45    #define GRUB_COMMAND_FLAG_NOT_LOADED    0x20
46    
47  /* The command description.  */  /* The command description.  */
48  struct grub_command  struct grub_command
49  {  {
50    /* The name.  */    /* The name.  */
51    const char *name;    char *name;
52    
53    /* The callback function.  */    /* The callback function.  */
54    grub_err_t (*func) (struct grub_arg_list *state, int argc, char **args);    grub_err_t (*func) (struct grub_arg_list *state, int argc, char **args);
# Line 63  struct grub_command Line 65  struct grub_command
65    /* The argument parser optionlist.  */    /* The argument parser optionlist.  */
66    const struct grub_arg_option *options;    const struct grub_arg_option *options;
67    
68      /* The name of a module. Used for auto-loading.  */
69      char *module_name;
70      
71    /* The next element.  */    /* The next element.  */
72    struct grub_command *next;    struct grub_command *next;
73  };  };
# Line 142  void grub_menu_entry_run (grub_menu_entr Line 147  void grub_menu_entry_run (grub_menu_entr
147  void grub_cmdline_run (int nested);  void grub_cmdline_run (int nested);
148  int grub_cmdline_get (const char *prompt, char cmdline[], unsigned max_len,  int grub_cmdline_get (const char *prompt, char cmdline[], unsigned max_len,
149                        int echo_char, int readline);                        int echo_char, int readline);
150  void grub_register_command (const char *name,  grub_command_t grub_register_command (const char *name,
151                              grub_err_t (*func) (struct grub_arg_list *state,                                        grub_err_t (*func) (struct grub_arg_list *state,
152                                                  int argc, char **args),                                                            int argc,
153                              unsigned flags,                                                            char **args),
154                              const char *summary,                                        unsigned flags,
155                              const char *description,                                        const char *summary,
156                              const struct grub_arg_option *parser);                                        const char *description,
157                                          const struct grub_arg_option *parser);
158  void grub_unregister_command (const char *name);  void grub_unregister_command (const char *name);
159  grub_command_t grub_command_find (char *cmdline);  grub_command_t grub_command_find (char *cmdline);
160  grub_err_t grub_set_history (int newsize);  grub_err_t grub_set_history (int newsize);

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26