#[no_mangle]
pub unsafe extern "C" fn graph_remove_user(
    graph_state: *mut GraphState,
    user_id: *const DsnpUserId
) -> FFIResult<bool, GraphError>
Expand description

Remove user from graph state

Safety

This function is unsafe because it dereferences a raw pointer

Arguments

  • graph_state - a pointer to a graph state
  • user_id - a pointer to a user id

Returns

  • bool - true if the user was removed, false otherwise

Errors

  • GraphError - if the graph state fails to remove user