shift command support
This commit is contained in:
parent
7897070571
commit
e9efa0fe36
7 changed files with 121 additions and 3 deletions
|
@ -23,6 +23,7 @@
|
|||
#include <grub/types.h>
|
||||
#include <grub/err.h>
|
||||
#include <grub/parser.h>
|
||||
#include <grub/command.h>
|
||||
|
||||
struct grub_script_mem;
|
||||
|
||||
|
@ -80,6 +81,7 @@ struct grub_script_scope
|
|||
|
||||
char **args;
|
||||
unsigned int argc;
|
||||
unsigned int shift;
|
||||
};
|
||||
|
||||
/* A single command line. */
|
||||
|
@ -308,6 +310,9 @@ grub_err_t grub_script_execute_menuentry (struct grub_script_cmd *cmd);
|
|||
/* Execute any GRUB pre-parsed command or script. */
|
||||
grub_err_t grub_script_execute (struct grub_script *script);
|
||||
|
||||
/* SHIFT command for GRUB script. */
|
||||
grub_err_t grub_script_cmd_shift (grub_command_t cmd, int argc, char *argv[]);
|
||||
|
||||
/* This variable points to the parsed command. This is used to
|
||||
communicate with the bison code. */
|
||||
extern struct grub_script_cmd *grub_script_parsed;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue