Motr  M0
m0_xcode_enum Struct Reference

#include <enum.h>

Collaboration diagram for m0_xcode_enum:
Collaboration graph

Data Fields

const char * xe_name
 
uint32_t xe_nr
 
const struct m0_xcode_enum_valxe_val
 
int xe_maxlen
 

Detailed Description

Enum descriptor.

Definition at line 56 of file enum.h.

Field Documentation

◆ xe_maxlen

int xe_maxlen

Maximal among constant name (m0_xcode_enum_val::xev_name) lengths for this type.

This is useful for formatting.

Definition at line 74 of file enum.h.

◆ xe_name

const char* xe_name

Name of the enum type.

Definition at line 58 of file enum.h.

◆ xe_nr

uint32_t xe_nr

Number of constants in the type.

Definition at line 60 of file enum.h.

◆ xe_val

const struct m0_xcode_enum_val* xe_val

Array of constant descriptors.

This array contains (self->xe_nr + 1) element. The last element is a sentinel, see xcode/enum.c:valget().

Definition at line 67 of file enum.h.


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