Skip to main content

pamoja_event_publisher_clone

Function pamoja_event_publisher_clone 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_event_publisher_clone( publisher: *const PamojaEventPublisher, ) -> *mut PamojaEventPublisher
Expand description

Takes another publisher on the same bus, for another part that announces.

§Arguments

  • publisher - an existing publisher on the bus.

§Returns

A handle with a lifetime of its own, which the caller must release with pamoja_event_publisher_free, or null if publisher is null.

§Safety

publisher must be a live handle, or null.