Function rusteron_archive::bindings::aeron_async_add_subscription
source ยท pub unsafe extern "C" fn aeron_async_add_subscription(
async_: *mut *mut aeron_async_add_subscription_t,
client: *mut aeron_t,
uri: *const c_char,
stream_id: i32,
on_available_image_handler: aeron_on_available_image_t,
on_available_image_clientd: *mut c_void,
on_unavailable_image_handler: aeron_on_unavailable_image_t,
on_unavailable_image_clientd: *mut c_void,
) -> c_int
Expand description
Asynchronously add a subscription using the given client and return an object to use to determine when the subscription is available.
@param async object to use for polling completion. @param client to add the subscription to. @param uri for the channel of the subscription. @param stream_id for the subscription. @param on_available_image_handler to be called when images become available on the subscription. @param on_available_image_clientd to be passed when images become available on the subscription. @param on_unavailable_image_handler to be called when images go unavailable on the subscription. @param on_unavailable_image_clientd to be passed when images go unavailable on the subscription. @return 0 for success or -1 for an error.