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) | |
FEATURE (FEATURE_MISC, "Menu", DHCP_EB_FEATURE_MENU, 1) | |
static int | dynui_exec (int argc, char **argv) |
The "dynui" command. More... | |
static int | item_exec (int argc, char **argv) |
The "item" command. More... | |
static int | choose_exec (int argc, char **argv) |
The "choose" command. More... | |
static int | present_exec (int argc, char **argv) |
The "present" command. More... | |
Variables | |
static struct option_descriptor | dynui_opts [] |
"dynui" option list More... | |
static struct command_descriptor | dynui_cmd |
"dynui" command descriptor More... | |
static struct option_descriptor | item_opts [] |
"item" option list More... | |
static struct command_descriptor | item_cmd |
"item" command descriptor More... | |
static struct option_descriptor | choose_opts [] |
"choose" option list More... | |
static struct command_descriptor | choose_cmd |
"choose" command descriptor More... | |
static struct option_descriptor | present_opts [] |
"present" option list More... | |
static struct command_descriptor | present_cmd |
"present" command descriptor More... | |
struct command dynui_commands [] | __command |
Dynamic user interface commands. More... | |
Dynamic user interface commands.
Definition in file dynui_cmd.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
FEATURE | ( | FEATURE_MISC | , |
"Menu" | , | ||
DHCP_EB_FEATURE_MENU | , | ||
1 | |||
) |
|
static |
The "dynui" command.
argc | Argument count |
argv | Argument list |
rc | Return status code |
Definition at line 73 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 153 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.
|
static |
The "choose" command.
argc | Argument count |
argv | Argument list |
rc | Return status code |
Definition at line 245 of file dynui_cmd.c.
References choose_cmd, destroy_dynui(), setting::name, dynamic_item::name, optind, opts, parse_autovivified_setting(), parse_dynui(), parse_options(), printf(), rc, show_menu(), storef_setting(), strerror(), and setting::type.
|
static |
The "present" command.
argc | Argument count |
argv | Argument list |
rc | Return status code |
Definition at line 323 of file dynui_cmd.c.
References destroy_dynui(), opts, parse_dynui(), parse_options(), present_cmd, rc, and show_form().
|
static |
"dynui" option list
Definition at line 54 of file dynui_cmd.c.
|
static |
"dynui" command descriptor
Definition at line 62 of file dynui_cmd.c.
Referenced by dynui_exec().
|
static |
"item" option list
Definition at line 126 of file dynui_cmd.c.
|
static |
"item" command descriptor
Definition at line 142 of file dynui_cmd.c.
Referenced by item_exec().
|
static |
"choose" option list
Definition at line 221 of file dynui_cmd.c.
|
static |
"choose" command descriptor
Definition at line 235 of file dynui_cmd.c.
Referenced by choose_exec().
|
static |
"present" option list
Definition at line 305 of file dynui_cmd.c.
|
static |
"present" command descriptor
Definition at line 313 of file dynui_cmd.c.
Referenced by present_exec().
struct command dynui_commands [] __command |
Dynamic user interface commands.
Definition at line 353 of file dynui_cmd.c.