Expand description
C ABI for acta (ABI version 2).
Every function returns an acta_ffi_status; strings are passed as
pointer/length pairs. Logger handles are opaque 64-bit tokens backed by
magic-guarded allocations — no global registry, so calls cost one
pointer dereference. On failure, acta_last_error() returns the detail
message for the most recent failed call on the calling thread.
include/acta_ffi.h is generated from this crate by cbindgen at build
time and must not be edited by hand.
Enums§
- acta_
ffi_ level - Log level values for
acta_logger_log. - acta_
ffi_ status - Status codes returned by every acta function.
Functions§
- acta_
abi_ version - Returns the ABI version of this library.
- acta_
last_ error - Returns the message of the most recent failed call on this thread, or null. The pointer is valid until the next failing call on the thread.
- acta_
logger_ close_ span - Safety
- acta_
logger_ ⚠create - Creates a logger from a JSON config, writing a handle to
out_handle. - acta_
logger_ ⚠create_ span - Opens a span, writing its id to
out_id. - acta_
logger_ ⚠destroy - Destroys a logger. The handle must not be used again.
- acta_
logger_ ⚠drain - Drains up to
output_capacitybuffered bytes intooutputand reports the cumulative dropped-byte count viaout_dropped. - acta_
logger_ ⚠event - Safety
- acta_
logger_ ⚠log - Safety
- acta_
logger_ ⚠record_ span - Safety
- acta_
logger_ ⚠set_ filter - Safety
- acta_
version - Returns the acta version as a NUL-terminated static string.
Type Aliases§
- acta_
ffi_ handle - Opaque logger handle, created by
acta_logger_create.