Expand description
FFI <–> Non-FFI conversion functions
Structs§
- FfiEvent
Data - FFI-safe(-ish) version of the
AgentEventenum
Functions§
- agent_
event_ to_ ffi - Converts an
AgentEventto anFfiEventDatastruct - check_
results_ to_ ffi - Converts a vector of
CheckResultinto the FFI-safeFfiResultArray - ffi_
array_ ⚠to_ results - Creates a Vector of
CheckResultfrom the givenFfiResultArray - ffi_
event_ ⚠to_ agent_ event - Converts an
FfiEventto anAgentEventenum value - free_
ffi_ ⚠results - Frees an
FfiResultArrayobject - free_
ffi_ ⚠string - Frees a string allocated by
string_to_ffi_ptr - string_
to_ ffi_ ptr - Converts a Rust string into an owned C string pointer