#[unsafe(no_mangle)]pub unsafe extern "C" fn moq_origin_announced(
origin: u32,
on_announce: Option<extern "C" fn(user_data: *mut c_void, announced: i32)>,
user_data: *mut c_void,
) -> i32Expand description
Learn about all broadcasts published to an origin.
The callback is called with an announced ID when a new broadcast is published.
- moq_origin_announced_info is used to query information about the broadcast.
- moq_origin_announced_close is used to stop receiving announcements.
Returns a non-zero handle on success, or a negative code on failure.
ยงSafety
- The caller must ensure that
on_announceis valid until moq_origin_announced_close is called.