Skip to main content

pamoja_gateway_station_message_net_id

Function pamoja_gateway_station_message_net_id 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_gateway_station_message_net_id( message: *const PamojaGatewayStationMessage, index: usize, out_net_id: *mut u32, ) -> PamojaStatus
Expand description

Reads one network a configuration names.

§Arguments

  • message - the configuration.
  • index - which one, below the net_id_count its fields report.
  • out_net_id - receives the network identifier.

§Returns

PamojaStatus::Ok once read, or PamojaStatus::InvalidArgument for an index past the list or a message that is not a configuration.

§Safety

message must be a live handle, and out_net_id must point to writable storage.