Data Fields
struct_magic_decl_t Struct Reference

#include <conftypes.h>

Data Fields

const char * typename
uint32_t magic_val
ptrdiff_t magic_offset

Detailed Description

Structure to describe the location and preferred value of a "magic number" field within a structure.

These 'magic numbers' are 32-bit values used to tag objects to make sure that they have the correct type.

If all fields in this structure are zero or 0, the magic-number check is not performed.

Definition at line 138 of file conftypes.h.

Field Documentation

◆ magic_offset

ptrdiff_t magic_offset

The location within the structure at which we expect to find magic_val.

Definition at line 145 of file conftypes.h.

Referenced by magic_is_null(), struct_check_magic(), and struct_set_magic().

◆ magic_val

uint32_t magic_val

A value used to recognize instances of this structure.

Definition at line 142 of file conftypes.h.

Referenced by config_mgr_freeze(), magic_is_null(), and struct_set_magic().

◆ typename

const char* typename

The name of the structure

Definition at line 140 of file conftypes.h.

Referenced by magic_is_null().

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