OpenOCD
nvp.h File Reference
Include dependency graph for nvp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  nvp
 Name Value Pairs, aka: NVP. More...
 

Functions

const struct nvpnvp_name2value (const struct nvp *nvp_table, const char *name) __returns_nonnull __nonnull((1))
 
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 *nvp_table, int v) __returns_nonnull __nonnull((1))
 

Function Documentation

◆ nvp_name2value()

const struct nvp* nvp_name2value ( const struct nvp nvp_table,
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 nvp_table,
int  v 
)