Function dsnp_graph_sdk_ffi::graph_remove_user
source · #[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 stateuser_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