Skip to main content

pamoja_gateway_station_router_identities

Function pamoja_gateway_station_router_identities 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_gateway_station_router_identities( text: *const u8, text_len: usize, out_ids: *mut PamojaGatewayStationRouterIds, ) -> PamojaStatus
Expand description

Reads the identities a discovery answer names: the station, and the server endpoint that carries its session.

§Arguments

  • text - the answer text.
  • text_len - how many bytes text holds.
  • out_ids - receives the identities.

§Returns

PamojaStatus::Ok once read, or PamojaStatus::Codec when the text is not JSON.

§Safety

text must point to text_len readable bytes, and out_ids to writable storage.