Skip to main content

Crate levilamina_sys

Crate levilamina_sys 

Source
Expand description

Raw FFI declarations mirroring src/LeviRsAbi.h (ABI v1).

This crate contains no logic — only #[repr(C)] types. Keep it in lockstep with the C header: fields are append-only, never reordered.

You almost certainly want the safe levilamina crate instead.

Structs§

LeviRsApi
Function table handed to the Rust mod. Mirrors LeviRsApi.
LeviRsModVTable
Filled in by the Rust mod inside levi_rs_main. Mirrors LeviRsModVTable.
LeviRsStr
UTF-8 string view. Not guaranteed NUL-terminated.

Constants§

LEVI_RS_ABI_VERSION
LEVI_RS_MAIN_SYMBOL

Type Aliases§

LeviRsCmdOutputSink
LeviRsCommandCb
LeviRsEventCb
LeviRsListenerHandle
LeviRsMainFn
The single symbol every Rust mod must export (see LEVI_RS_MAIN_SYMBOL). Mirrors LeviRsMainFn in the C header. Provided mainly so the loader’s own GetProcAddress cast and any mod-side signature checks share one definition instead of two hand-written copies drifting apart.
LeviRsModHandle
LeviRsStrSink
LeviRsTaskCb