Motr  M0
m0_getopts_opt::m0_getopts_union Union Reference

#include <getopts.h>

Collaboration diagram for m0_getopts_opt::m0_getopts_union:
Collaboration graph

Data Fields

void(* got_void )(void)
 
void(* got_number )(int64_t num)
 
void(* got_scaled )(m0_bcount_t num)
 
void(* got_string )(const char *string)
 
struct {
   const char *   f_string
 
   void *   f_out
 
got_fmt
 
bool * got_flag
 

Detailed Description

Option-type specific data.

Definition at line 127 of file getopts.h.

Field Documentation

◆ f_out

void* f_out

Address to store parsed argument for a GOT_FORMAT option.

Definition at line 141 of file getopts.h.

◆ f_string

const char* f_string

Format string for a GOT_FORMAT option.

Definition at line 138 of file getopts.h.

◆ got_flag

bool* got_flag

Address of a boolean flag for a GOT_FLAG option.

Definition at line 144 of file getopts.h.

◆ got_fmt

struct { ... } got_fmt

◆ got_number

void(* got_number) (int64_t num)

Call-back invoked for a GOT_NUMBER option.

Definition at line 131 of file getopts.h.

◆ got_scaled

void(* got_scaled) (m0_bcount_t num)

Call-back invoked for a GOT_SCALED option.

Definition at line 133 of file getopts.h.

◆ got_string

void(* got_string) (const char *string)

Call-back invoked for a GOT_STRING option.

Definition at line 135 of file getopts.h.

◆ got_void

void(* got_void) (void)

Call-back invoked for a GOT_VOID option.

Definition at line 129 of file getopts.h.


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