opts.c File Reference

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

Include dependency graph for opts.c:

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"


Function Documentation

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().

Here is the caller graph for this function:

void parse_nvramtool_args ( int  argc,
char *  argv[] 
)

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

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 36 of file opts.c.

Referenced by main(), and op_cmos_show_one_param().


Generated on Wed Jan 7 15:04:09 2009 for coreboot by  doxygen 1.5.5