#include "common.h"#include "opts.h"

Go to the source code of this file.
Functions | |
| static char * | handle_optional_arg (int argc, char *argv[]) |
| static void | register_op (int *op_found, nvramtool_op_t op, char op_param[]) |
| static void | register_op_modifier (nvramtool_op_modifier_t mod, char mod_param[]) |
| static void | resolve_op_modifiers (void) |
| static void | sanity_check_args (void) |
| void | parse_nvramtool_args (int argc, char *argv[]) |
Variables | |
| nvramtool_op_info_t | nvramtool_op |
| nvramtool_op_modifier_info_t | nvramtool_op_modifiers [NVRAMTOOL_NUM_OP_MODIFIERS] |
| static const char | getopt_string [] = "-ab:B:c::de:hil::np:r:tvw:xX:y:Y" |
| static char * handle_optional_arg | ( | int | argc, | |
| char * | argv[] | |||
| ) | [static] |
Definition at line 151 of file opts.c.
References getopt_string, and NULL.
Referenced by parse_nvramtool_args().

| void parse_nvramtool_args | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Definition at line 51 of file opts.c.
References c, FALSE, nvramtool_op_modifier_info_t::found, nvramtool_op_modifier_info_t::found_seq, getopt_string, handle_optional_arg(), NULL, NVRAMTOOL_MOD_SHOW_VALUE_ONLY, NVRAMTOOL_MOD_USE_CMOS_LAYOUT_FILE, NVRAMTOOL_MOD_USE_CMOS_OPT_TABLE, NVRAMTOOL_NUM_OP_MODIFIERS, NVRAMTOOL_OP_CMOS_CHECKSUM, NVRAMTOOL_OP_CMOS_SET_ONE_PARAM, NVRAMTOOL_OP_CMOS_SET_PARAMS_FILE, NVRAMTOOL_OP_CMOS_SET_PARAMS_STDIN, NVRAMTOOL_OP_CMOS_SHOW_ALL_PARAMS, NVRAMTOOL_OP_CMOS_SHOW_ONE_PARAM, NVRAMTOOL_OP_LBTABLE_DUMP, NVRAMTOOL_OP_LBTABLE_SHOW_INFO, NVRAMTOOL_OP_READ_CMOS_DUMP, NVRAMTOOL_OP_SHOW_CMOS_DUMPFILE, NVRAMTOOL_OP_SHOW_CMOS_HEX_DUMP, NVRAMTOOL_OP_SHOW_LAYOUT, NVRAMTOOL_OP_SHOW_PARAM_VALUES, NVRAMTOOL_OP_SHOW_USAGE, NVRAMTOOL_OP_SHOW_VERSION, NVRAMTOOL_OP_WRITE_CMOS_DUMP, nvramtool_op_modifier_info_t::param, register_op(), register_op_modifier(), resolve_op_modifiers(), sanity_check_args(), and usage().
Referenced by main().


| static void register_op | ( | int * | op_found, | |
| nvramtool_op_t | op, | |||
| char | op_param[] | |||
| ) | [static] |
Definition at line 180 of file opts.c.
References nvramtool_op_info_t::op, nvramtool_op_info_t::param, TRUE, and usage().
Referenced by parse_nvramtool_args().


| static void register_op_modifier | ( | nvramtool_op_modifier_t | mod, | |
| char | mod_param[] | |||
| ) | [static] |
Definition at line 195 of file opts.c.
References nvramtool_op_modifier_info_t::found, nvramtool_op_modifier_info_t::found_seq, nvramtool_op_modifier_info_t::param, and TRUE.
Referenced by parse_nvramtool_args().

| static void resolve_op_modifiers | ( | void | ) | [static] |
Definition at line 211 of file opts.c.
References FALSE, nvramtool_op_modifier_info_t::found, NVRAMTOOL_MOD_USE_CMOS_LAYOUT_FILE, and NVRAMTOOL_MOD_USE_CMOS_OPT_TABLE.
Referenced by parse_nvramtool_args().

| static void sanity_check_args | ( | void | ) | [static] |
Definition at line 227 of file opts.c.
References NVRAMTOOL_MOD_SHOW_VALUE_ONLY, NVRAMTOOL_OP_CMOS_SHOW_ONE_PARAM, nvramtool_op_info_t::op, and usage().
Referenced by parse_nvramtool_args().


const char getopt_string[] = "-ab:B:c::de:hil::np:r:tvw:xX:y:Y" [static] |
Definition at line 44 of file opts.c.
Referenced by handle_optional_arg(), and parse_nvramtool_args().
Definition at line 34 of file opts.c.
Referenced by main(), op_cmos_checksum(), op_cmos_set_one_param(), op_cmos_set_params_file(), op_cmos_show_one_param(), op_lbtable_show_info(), op_read_cmos_dump(), op_show_cmos_dumpfile(), op_show_param_values(), and op_write_cmos_dump().
| nvramtool_op_modifier_info_t nvramtool_op_modifiers[NVRAMTOOL_NUM_OP_MODIFIERS] |
1.5.5