iPXE
Data Fields
option_descriptor Struct Reference

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

Detailed Description

A command-line option descriptor.

Definition at line 23 of file parseopt.h.

Field Documentation

◆ longopt

const char* option_descriptor::longopt

Long option name, if any.

Definition at line 25 of file parseopt.h.

◆ shortopt

char option_descriptor::shortopt

Short option name.

Definition at line 27 of file parseopt.h.

◆ has_arg

uint8_t option_descriptor::has_arg

Argument requirement (as for struct option)

Definition at line 29 of file parseopt.h.

◆ offset

uint16_t option_descriptor::offset

Offset of field within options structure.

Definition at line 31 of file parseopt.h.

◆ parse

int( * option_descriptor::parse) (char *text, void *value)

Parse option.

Parameters
textOption text
valueOption value to fill in
Return values
rcReturn status code

Definition at line 38 of file parseopt.h.


The documentation for this struct was generated from the following file: