Expand description
C-compatible FFI bindings.
Thin wrappers around the public API. Opaque pointers. No Rust types exposed.
All functions use panic::catch_unwind for safety and null-pointer checks.
Constants§
- ACB_
ERR_ INVALID - Invalid argument.
- ACB_
ERR_ IO - I/O error.
- ACB_
ERR_ NOT_ FOUND - Not found.
- ACB_
ERR_ NULL_ PTR - Null pointer.
- ACB_
ERR_ OVERFLOW - Buffer overflow.
- ACB_OK
- Success.
Functions§
- acb_
graph_ ⚠dimension - Get the embedding dimension.
- acb_
graph_ ⚠edge_ count - Get the number of edges in the graph.
- acb_
graph_ ⚠free - Free a graph handle.
- acb_
graph_ ⚠get_ edges - Get outgoing edges from a unit. Returns edge count or error code.
- acb_
graph_ ⚠get_ unit_ complexity - Get a unit’s complexity score. Returns -1.0 if not found.
- acb_
graph_ ⚠get_ unit_ file - Get a unit’s file path. Writes to buffer. Returns path length or error code.
- acb_
graph_ ⚠get_ unit_ language - Get a unit’s language. Returns language as u8, or -1 if not found.
- acb_
graph_ ⚠get_ unit_ name - Get a unit’s name. Writes to buffer. Returns name length or error code.
- acb_
graph_ ⚠get_ unit_ stability - Get a unit’s stability score. Returns -1.0 if not found.
- acb_
graph_ ⚠get_ unit_ type - Get a unit’s type as a u8. Returns -1 if not found.
- acb_
graph_ ⚠open - Load a code graph from an
.acbfile. Returns handle or NULL on failure. - acb_
graph_ ⚠unit_ count - Get the number of code units in the graph.