Skip to main content

Module convert

Module convert 

Source
Expand description

FFI <–> Non-FFI conversion functions

Structs§

FfiEventData
FFI-safe(-ish) version of the AgentEvent enum

Functions§

agent_event_to_ffi
Converts an AgentEvent to an FfiEventData struct
check_results_to_ffi
Converts a vector of CheckResult into the FFI-safe FfiResultArray
ffi_array_to_results
Creates a Vector of CheckResult from the given FfiResultArray
ffi_event_to_agent_event
Converts an FfiEvent to an AgentEvent enum value
ffi_string_array_to_vec
Converts an FFI string array into owned Rust strings.
free_ffi_results
Frees an FfiResultArray object
free_ffi_string
Frees a string allocated by string_to_ffi_ptr
free_ffi_string_array
Frees an FfiStringArray allocated by strings_to_ffi_array.
string_to_ffi_ptr
Converts a Rust string into an owned C string pointer
strings_to_ffi_array
Converts Rust strings into an FFI-safe string array.