Skip to main content

pamoja_event_bus_publisher

Function pamoja_event_bus_publisher 

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

Takes a publish-only handle on the same bus.

§Arguments

  • bus - an existing endpoint on the bus.

§Returns

A handle the caller must release with pamoja_event_publisher_free, or null if bus is null.

§Safety

bus must be a live handle, or null.