pub mod builtin;
pub mod config;
pub mod context;
pub mod executor;
mod expand;
pub mod ffi;
pub mod graph;
pub mod kernel;
pub mod kernel_api;
pub mod packet;
pub mod runtime;
pub mod status;
pub mod timestamp;
pub use graph::{Graph, Input, Poller, State};
pub use kernel_api::{register_kernel, Kernel, KernelContract, KernelCtx};
pub use packet::{BufferData, Builtin, Packet};
pub use status::{Error, Result};
pub use timestamp::Timestamp;
#[cfg(feature = "builtin-kernels")]
extern "C" {
fn lmflow_register_builtin_kernels_impl();
}
#[cfg(feature = "builtin-kernels")]
pub fn register_builtin_kernels() {
use std::sync::Once;
static ONCE: Once = Once::new();
ONCE.call_once(|| unsafe { lmflow_register_builtin_kernels_impl() });
}
#[cfg(feature = "builtin-kernels")]
#[no_mangle]
pub unsafe extern "C" fn lmflow_register_builtin_kernels() {
register_builtin_kernels();
}