Function dsnp_graph_sdk_ffi::graph_apply_actions
source · #[no_mangle]
pub unsafe extern "C" fn graph_apply_actions(
graph_state: *mut GraphState,
actions: *const Action,
actions_len: usize,
options: *const ActionOptions
) -> FFIResult<bool, GraphError>
Expand description
Apply actions to graph state
Safety
This function is unsafe because it dereferences a raw pointer
Arguments
graph_state
- a pointer to a graph stateactions
- a pointer to an array of actionsactions_len
- the length of the actions array
Returns
bool
- true if the actions were applied, false otherwise
Errors
GraphError
- if the actions cannot be applied to the graph state