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

Get connections for 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
  • schema_id - a pointer to a schema id
  • include_pending - a boolean to include pending connections

Returns

  • GraphConnections - the pointer to the graph connections

Errors

  • GraphError - if the connections cannot be retrieved