Function rust_hawktracer::ht_timeline_listener_container_register_listener [−][src]
pub unsafe extern "C" fn ht_timeline_listener_container_register_listener(
container: *mut HT_TimelineListenerContainer,
callback: HT_TimelineListenerCallback,
user_data: *mut c_void
) -> HT_ErrorCode
Registers new listener to a container.
@param container a pointer to the container. @param callback a timeline listener callback. @param user_data a user data passed to a @a callback when gets called.
@returns #HT_ERR_OK, if registration completed successfully; otherwise, appropriate error code.