Skip to main content

pamoja_gateway_packet_kind

Function pamoja_gateway_packet_kind 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_gateway_packet_kind( packet: *const PamojaGatewayPacket, ) -> u8
Expand description

Returns which kind of datagram a packet is.

§Arguments

  • packet - the packet.

§Returns

One of PAMOJA_GATEWAY_PUSH_DATA through PAMOJA_GATEWAY_TX_ACK, or 255 if packet is null.

§Safety

packet must be a live handle, or null.