|
iPXE
|
Dynamic user interface commands. More...
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <errno.h>#include <getopt.h>#include <ipxe/dynui.h>#include <ipxe/command.h>#include <ipxe/parseopt.h>#include <ipxe/settings.h>#include <ipxe/features.h>Go to the source code of this file.
Data Structures | |
| struct | dynui_options |
| "dynui" options More... | |
| struct | item_options |
| "item" options More... | |
| struct | choose_options |
| "choose" options More... | |
| struct | present_options |
| "present" options More... | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| FILE_SECBOOT (PERMITTED) | |
| FEATURE (FEATURE_MISC, "Menu", DHCP_EB_FEATURE_MENU, 1) | |
| static int | dynui_exec (int argc, char **argv) |
| The "dynui" command. | |
| static int | item_exec (int argc, char **argv) |
| The "item" command. | |
| static int | choose_exec (int argc, char **argv) |
| The "choose" command. | |
| static int | present_exec (int argc, char **argv) |
| The "present" command. | |
| COMMAND (menu, dynui_exec) | |
| Dynamic user interface commands. | |
| COMMAND (form, dynui_exec) | |
| COMMAND (item, item_exec) | |
| COMMAND (choose, choose_exec) | |
| COMMAND (present, present_exec) | |
Variables | |
| static struct option_descriptor | dynui_opts [] |
| "dynui" option list | |
| static struct command_descriptor | dynui_cmd |
| "dynui" command descriptor | |
| static struct option_descriptor | item_opts [] |
| "item" option list | |
| static struct command_descriptor | item_cmd |
| "item" command descriptor | |
| static struct option_descriptor | choose_opts [] |
| "choose" option list | |
| static struct command_descriptor | choose_cmd |
| "choose" command descriptor | |
| static struct option_descriptor | present_opts [] |
| "present" option list | |
| static struct command_descriptor | present_cmd |
| "present" command descriptor | |
Dynamic user interface commands.
Definition in file dynui_cmd.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| FILE_SECBOOT | ( | PERMITTED | ) |
| FEATURE | ( | FEATURE_MISC | , |
| "Menu" | , | ||
| DHCP_EB_FEATURE_MENU | , | ||
| 1 | ) |
References DHCP_EB_FEATURE_MENU, and FEATURE_MISC.
|
static |
The "dynui" command.
| argc | Argument count |
| argv | Argument list |
| rc | Return status code |
Definition at line 74 of file dynui_cmd.c.
References concat_args(), create_dynui(), destroy_dynui(), dynui_cmd, ENOMEM, free, optind, opts, parse_options(), rc, and dynamic_ui::title.
|
static |
The "item" command.
| argc | Argument count |
| argv | Argument list |
| rc | Return status code |
Definition at line 154 of file dynui_cmd.c.
References add_dynui_item(), concat_args(), DYNUI_DEFAULT, DYNUI_SECRET, ENOMEM, flags, free, item_cmd, name, NULL, optind, opts, parse_dynui(), parse_options(), rc, and dynamic_item::text.
Referenced by COMMAND().
|
static |
The "choose" command.
| argc | Argument count |
| argv | Argument list |
| rc | Return status code |
Definition at line 246 of file dynui_cmd.c.
References choose_cmd, destroy_dynui(), dynamic_item::name, setting::name, optind, opts, parse_autovivified_setting(), parse_dynui(), parse_options(), printf(), rc, show_menu(), storef_setting(), strerror(), and setting::type.
Referenced by COMMAND().
|
static |
The "present" command.
| argc | Argument count |
| argv | Argument list |
| rc | Return status code |
Definition at line 324 of file dynui_cmd.c.
References destroy_dynui(), opts, parse_dynui(), parse_options(), present_cmd, rc, and show_form().
Referenced by COMMAND().
| COMMAND | ( | menu | , |
| dynui_exec | ) |
Dynamic user interface commands.
References dynui_exec().
| COMMAND | ( | form | , |
| dynui_exec | ) |
References dynui_exec().
| COMMAND | ( | item | , |
| item_exec | ) |
References item_exec().
| COMMAND | ( | choose | , |
| choose_exec | ) |
References choose_exec().
| COMMAND | ( | present | , |
| present_exec | ) |
References present_exec().
|
static |
"dynui" option list
Definition at line 55 of file dynui_cmd.c.
|
static |
"dynui" command descriptor
Definition at line 63 of file dynui_cmd.c.
Referenced by dynui_exec(), and PROVIDE_REQUIRING_SYMBOL().
|
static |
"item" option list
Definition at line 127 of file dynui_cmd.c.
|
static |
"item" command descriptor
Definition at line 143 of file dynui_cmd.c.
Referenced by item_exec().
|
static |
"choose" option list
Definition at line 222 of file dynui_cmd.c.
|
static |
"choose" command descriptor
Definition at line 236 of file dynui_cmd.c.
Referenced by choose_exec().
|
static |
|
static |
"present" command descriptor
Definition at line 314 of file dynui_cmd.c.
Referenced by present_exec().