Motr  M0
m0_getopts_opt Struct Reference

#include <getopts.h>

Collaboration diagram for m0_getopts_opt:
Collaboration graph

Data Structures

union  m0_getopts_union
 

Data Fields

enum m0_getopts_opt_type go_type
 
char go_opt
 
const char * go_desc
 
union m0_getopts_opt::m0_getopts_union go_u
 

Detailed Description

A description of an option, recognized by m0_getopts().

Callers are not supposed to construct these explicitly. M0_*ARG() macros, defined below, are used instead.

See also
M0_VOIDARG
M0_NUMBERARG
M0_SCALEDARG
M0_STRINGARG
M0_FORMATARG
M0_FLAGARG

Definition at line 120 of file getopts.h.

Field Documentation

◆ go_desc

const char* go_desc

Human-readable option description. Used in error messages.

Definition at line 125 of file getopts.h.

◆ go_opt

char go_opt

Option character.

Definition at line 123 of file getopts.h.

◆ go_type

enum m0_getopts_opt_type go_type

Definition at line 121 of file getopts.h.

◆ go_u


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