Skip to main content

Module ffi

Module ffi 

Source
Expand description

Experimental C ABI surface for embedding Silicera-runtime in C/C++ hosts.

Enabled with feature c-abi. All unsafe is isolated here. Rust callers should prefer the safe Dispatcher API.

§Symbols

SymbolRole
silicera_initProcess/library init (idempotent)
silicera_profile_loadLoad .hnep into an opaque handle
silicera_variant_selectSize → variant name (NUL-terminated into caller buffer)
silicera_profile_freeRelease handle

Status codes: 0 ok, negative = error (-1 null, -2 I/O/parse, -3 buffer).

Structs§

SiliceraProfile
Opaque profile handle for C callers.

Functions§

silicera_init
Initialize the Silicera C ABI (idempotent). Returns 0.
silicera_profile_free
Free a profile handle from silicera_profile_load.
silicera_profile_load
Load an HNEP profile from a UTF-8 path.
silicera_variant_select
Select a variant name for size_bytes into buf (NUL-terminated).