module_abi.h¶
| File Path | engine/include/conjure/modules/module_abi.h |
| API ↗ | Loading and managing modules |
The C front door of a shared module.
Structs¶
| File | Description |
|---|---|
conjure_module_abi_signature |
Everything that must match exactly between a module binary and the host before any C++ object crosses the boundary. Pure C layout; compared field by field by compare_abi(). |
conjure_module_info |
What conjure_module_describe() returns: the signature plus the module name, which must equal the manifest name. |
Type Aliases¶
conjure_module_describe_fn¶
conjure_module_entry_fn¶
Forward Declarations¶
module_context¶
Constants¶
Functions¶
Public¶
compare_abi¶
compare_abi¶[[nodiscard]] CONJURE_API core::result<void> compare_abi(
const conjure_module_abi_signature &moduleSignature,
const conjure_module_abi_signature &hostSignature);Compares every field, structSize first (a smaller struct is rejected before any other field is read), then magic, abiVersion and the rest in declaration order. ABI_MISMATCH names the first differing field with the expected and actual values and asks for a rebuild.
host_abi_signature¶
host_abi_signature¶[[nodiscard]] CONJURE_API const conjure_module_abi_signature &host_abi_signature() noexcept;The signature the engine itself was built with.
make_abi_signature¶
make_abi_signature¶[[nodiscard]] constexpr conjure_module_abi_signature make_abi_signature() noexcept;The signature of the translation unit that calls it. CONJURE_TEST_ABI_VERSION_OVERRIDE and CONJURE_TEST_ENGINE_VERSION_OVERRIDE (a major version) exist for the mismatch fixtures only.
make_module_info¶
make_module_info¶[[nodiscard]] constexpr conjure_module_info make_module_info(
const char *name) noexcept;The describe() payload of a module named name (a string literal that outlives the binary).