omni::core::ModuleExportEntry

Defined in omni/core/ModuleExports.h

struct ModuleExportEntry

Define an entry in omni::core::ModuleExports.

Use OMNI_MODULE_EXPORT_ENTRY_BEGIN and OMNI_MODULE_EXPORT_ENTRY_END to define an new entry type.

Each entry type must have a unique type (which is a string).

OMNI_MODULE_EXPORT_ENTRY_BEGIN defines the header of the entry. Note, the use of macros vs. inheritance is to ensure the resulting entry is ABI-safe (e.g. passes CARB_ASSERT_INTEROP_SAFE) since these entries will be passed across DLL boundaries.

Public Functions

inline ModuleExportEntry(const char *t, ModuleExportEntryFlag f)

Constructor.

Public Members

const char *type

Unique type name describing the entry.

ModuleExportEntryFlag flags

Special flags for the entry (ex: required).

uint32_t byteCount

Size of the entry in bytes (including the header).