-
Notifications
You must be signed in to change notification settings - Fork 168
Refactor Origin API: cleaner naming, remove Option from announcements #1142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
cd82878
27979eb
a2db2ed
b0af4b4
b1f7c65
90f27df
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -76,8 +76,8 @@ pub struct moq_announced { | |
| pub path: *const c_char, | ||
| pub path_len: usize, | ||
|
|
||
| /// Whether the broadcast is active or has ended | ||
| /// This MUST toggle between true and false over the lifetime of the broadcast | ||
| /// Whether the broadcast is active (always true; unannouncements are no longer sent). | ||
| #[deprecated(note = "always true — use BroadcastConsumer::closed() to detect end of broadcast")] | ||
| pub active: bool, | ||
|
Comment on lines
+79
to
81
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Search for any existing C FFI function that exposes broadcast closed functionality
rg -n 'moq_.*closed|closed.*extern.*C' rs/libmoq/src/Repository: moq-dev/moq Length of output: 168 🏁 Script executed: #!/bin/bash
# First, verify the BroadcastConsumer::closed() method exists at the claimed location
echo "=== Checking for BroadcastConsumer closed method ==="
rg -n 'fn closed' rs/libmoq/src/ rs/moq-lite/src/ 2>/dev/null | head -20
# Also search for BroadcastConsumer struct definition and methods
echo -e "\n=== Searching for BroadcastConsumer struct and its methods ==="
rg -A 20 'struct BroadcastConsumer' rs/libmoq/src/ rs/moq-lite/src/ 2>/dev/null | head -50Repository: moq-dev/moq Length of output: 2895 🏁 Script executed: #!/bin/bash
# Check all moq_consume* functions in the C FFI layer
echo "=== All moq_consume* C FFI exports ==="
rg -n 'moq_consume' rs/libmoq/src/api.rs | head -30
# Search for any callbacks or patterns related to broadcast consumer status
echo -e "\n=== Broadcast-related C FFI exports ==="
rg -n 'BroadcastConsumer|broadcast.*callback' rs/libmoq/src/api.rs | head -30Repository: moq-dev/moq Length of output: 1880 Missing C FFI binding for The deprecation note at line 80 directs C consumers to use Add a C FFI binding (e.g., 🤖 Prompt for AI Agents |
||
| } | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add or remove unresolved
[SFrame]citation.At Line 442,
[SFrame]is cited but no matching reference entry appears in Section 8. This will usually produce an unresolved-reference warning/error in draft tooling.✏️ Proposed fix (quick safe option)
If you want to keep the citation, add a proper
[SFrame]reference entry in the references section instead.📝 Committable suggestion
🤖 Prompt for AI Agents