#[unsafe(no_mangle)]pub unsafe extern "C" fn moq_versions(
dst: *mut moq_string,
count: usize,
) -> i32Expand description
List the protocol versions offered during the handshake by default.
Writes up to count names into dst and returns the total number available, which
may be larger than count. Pass a NULL dst with a zero count to size the array
first. Each name borrows a static string valid for the life of the process, so a
caller building a menu can hold them indefinitely.
Work-in-progress versions are omitted, since they are not advertised unless pinned; moq_client_set_versions still accepts them by name.
Returns the total count on success, or a negative code on failure.
ยงSafety
- The caller must ensure that
dstis either NULL with a zerocount, or a valid pointer tocountwritable moq_string values.