Expand description
Public C API entry points.
Each submodule exposes extern "C" functions that cbindgen collects into
rgpot-core/include/rgpot.h. All functions in this module follow three
invariants:
- Return
rgpot_status_t(or a pointer / void for constructors and destructors). - Wrap the body in
catch_unwindto prevent panics from crossing the FFI boundary. - Validate pointer arguments and call
set_last_errorbefore returning a non-success status.
§Submodules
types— Convenience constructors forrgpot_force_input_tandrgpot_force_out_t.potential— Lifecycle functions forrgpot_potential_t: create, calculate, free.- [
rpc] — RPC client functions (feature-gated onrpc): connect, calculate, disconnect.