#[unsafe(no_mangle)]pub unsafe extern "C" fn amem_graph_add_node(
graph: *mut c_void,
event_type: u8,
content: *const c_char,
session_id: u32,
confidence: f32,
) -> i64Expand description
Add a node. Returns the assigned node ID, or -1 on error.
ยงSafety
The caller must ensure that all pointer arguments are valid and non-null (unless the function explicitly handles null pointers), and that any pointed-to data is valid for the expected type and lifetime.