Tor  0.4.4.0-alpha-dev
Data Fields
struct_member_t Struct Reference

#include <conftypes.h>

Data Fields

const char * name
 
config_type_t type
 
const struct var_type_def_ttype_def
 
ptrdiff_t offset
 

Detailed Description

Structure to specify a named, typed member within a structure.

Definition at line 96 of file conftypes.h.

Field Documentation

◆ name

const char* name

◆ offset

ptrdiff_t offset

Offset of this field within the structure. Compute this with offsetof(structure, fieldname).

Definition at line 125 of file conftypes.h.

Referenced by config_assign_line(), struct_get_mptr(), and struct_get_ptr().

◆ type

Type of the field, according to the config_type_t enumeration.

For any type not otherwise listed in config_type_t, this field's value should be CONFIG_TYPE_EXTENDED. When it is, the type_def pointer must be set.

Definition at line 114 of file conftypes.h.

Referenced by get_type_def().

◆ type_def

const struct var_type_def_t* type_def

Pointer to a type definition for the type of this field. Overrides type if it is not NULL. Must be set when type is CONFIG_TYPE_EXTENDED.

Definition at line 120 of file conftypes.h.

Referenced by get_type_def().


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