actr-framework 0.3.1

Actor-RTC framework core (stub for code generation testing)
Documentation
//! Host callback function table for dynclib guests.
//!
//! Dynclib guests use a single business entry point plus a buffer free callback.

/// Host callback function pointer table.
///
/// # Safety
///
/// - All function pointers remain valid from `actr_init` until process exit.
/// - The host guarantees serialized entry per guest instance.
/// - All buffers returned by `invoke` must be released with `free_host_buf`.
#[repr(C)]
pub struct HostVTable {
    /// Invoke a host operation encoded as `AbiFrame`.
    pub invoke: unsafe extern "C" fn(*const u8, usize, *mut *mut u8, *mut usize) -> i32,

    /// Free a host-allocated buffer returned by `invoke`.
    pub free_host_buf: unsafe extern "C" fn(*mut u8, usize),
}