Skip to main content

Crate acta_ffi

Crate acta_ffi 

Source
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_capacity buffered bytes into output and reports the cumulative dropped-byte count via out_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.