iPXE
|
A command-line option descriptor. More...
#include <parseopt.h>
Data Fields | |
const char * | longopt |
Long option name, if any. More... | |
char | shortopt |
Short option name. More... | |
uint8_t | has_arg |
Argument requirement (as for struct option ) More... | |
uint16_t | offset |
Offset of field within options structure. More... | |
int(* | parse )(char *text, void *value) |
Parse option. More... | |
A command-line option descriptor.
Definition at line 23 of file parseopt.h.
const char* option_descriptor::longopt |
Long option name, if any.
Definition at line 25 of file parseopt.h.
char option_descriptor::shortopt |
Short option name.
Definition at line 27 of file parseopt.h.
uint8_t option_descriptor::has_arg |
Argument requirement (as for struct
option
)
Definition at line 29 of file parseopt.h.
uint16_t option_descriptor::offset |
Offset of field within options structure.
Definition at line 31 of file parseopt.h.
int( * option_descriptor::parse) (char *text, void *value) |
Parse option.
text | Option text |
value | Option value to fill in |
rc | Return status code |
Definition at line 38 of file parseopt.h.