Skip to main content

moq_origin_announced_free

Function moq_origin_announced_free 

Source
#[unsafe(no_mangle)]
pub extern "C" fn moq_origin_announced_free(announced: u32) -> i32
Expand description

Free a single announcement delivered to a moq_origin_announced on_announce callback.

Each announce / unannounce event hands the callback a distinct announcement handle (read with moq_origin_announced_info); release it here once done to avoid leaking one per event over the life of the listener. This is per-announcement and distinct from moq_origin_announced_close, which stops the listener itself. After freeing, any path pointer obtained from moq_origin_announced_info for this handle is dangling.

Returns zero on success, or a negative code if the handle is unknown.