OpenOCD
nvp.c File Reference
Include dependency graph for nvp.c:

Go to the source code of this file.

Functions

const struct nvpnvp_name2value (const struct nvp *p, const char *name)
 
void nvp_unknown_command_print (struct command_invocation *cmd, const struct nvp *nvp, const char *param_name, const char *param_value)
 
const struct nvpnvp_value2name (const struct nvp *p, int value)
 

Function Documentation

◆ nvp_name2value()

const struct nvp* nvp_name2value ( const struct nvp p,
const char *  name 
)

Definition at line 29 of file nvp.c.

References nvp::name, and name.

Referenced by __COMMAND_HANDLER(), COMMAND_HANDLER(), and COMMAND_HELPER().

◆ nvp_unknown_command_print()

void nvp_unknown_command_print ( struct command_invocation cmd,
const struct nvp nvp,
const char *  param_name,
const char *  param_value 
)

Definition at line 49 of file nvp.c.

References cmd, command_print(), command_print_sameline(), nvp::name, and name.

Referenced by __COMMAND_HANDLER(), COMMAND_HANDLER(), and COMMAND_HELPER().

◆ nvp_value2name()

const struct nvp* nvp_value2name ( const struct nvp p,
int  value 
)