Skip to main content

Crate konjure_ffi

Crate konjure_ffi 

Source
Expand description

C-compatible, panic-contained access to the portable Konjure runtime.

No Rust pointer is exposed as an ABI handle. A handle names a registry slot and generation, so use-after-dispose and stale handles are deterministic errors rather than undefined behavior.

Structs§

KjHandle

Enums§

KjStatus

Constants§

KJ_ABI_VERSION

Functions§

kj_abi_version
Returns the ABI major version implemented by this library.
kj_runtime_compile
Compiles DSL source and places a generation-safe runtime handle in out_handle.
kj_runtime_dispatch_json
Dispatches a serialized Event and serializes its receipt as UTF-8 JSON.
kj_runtime_dispose
Disposes a runtime. A second disposal, or any stale copied handle, returns InvalidHandle.
kj_runtime_from_document_json
Creates a runtime from a serialized SceneDocument JSON value.
kj_runtime_meshes_json
Serializes all prepared meshes as { "entries": [{ "entity", "topology", "mesh" }] } JSON.
kj_runtime_sample_json
Samples a deterministic frame and serializes it as UTF-8 JSON.
kj_runtime_scene_json
Serializes the authoritative scene document as UTF-8 JSON.