Skip to main content

pamoja_message_topic

Function pamoja_message_topic 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_message_topic( message: *const PamojaMessage, ) -> *const c_char
Expand description

Returns the topic a message arrived on.

§Arguments

  • message - the message.

§Returns

A null-terminated UTF-8 string owned by the message and valid until it is freed, or null if message is null.

§Safety

message must be a live handle from a call that produced one, or null.