Skip to main content

pamoja_gateway_station_message_new

Function pamoja_gateway_station_message_new 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_gateway_station_message_new( fields: *const PamojaGatewayStationFields, ) -> *mut PamojaGatewayStationMessage
Expand description

Builds a message of any kind from its fixed fields.

The message starts with no text, no bytes, and empty lists; add those with the pamoja_gateway_station_message_set_* and pamoja_gateway_station_message_add_* calls. The counts in fields are not read.

§Arguments

  • fields - the fields, whose kind names the message.

§Returns

A handle the caller must release with pamoja_gateway_station_message_free, or null when fields is null or names no kind.

§Safety

fields must point to a readable PamojaGatewayStationFields or be null.