Skip to main content

pamoja_event_publisher_subscribe

Function pamoja_event_publisher_subscribe 

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

Subscribes to the bus a publisher publishes on.

§Arguments

  • publisher - the publisher.

§Returns

An endpoint that receives events published from now on, which the caller must release with pamoja_event_bus_free, or null if publisher is null.

§Safety

publisher must be a live handle, or null.