You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rust: Port the extracted output name getter to obs-output #5302
Phase 6 follow-up to the C-only characterization/extraction prerequisite #5300 (pattern established by #5044). After that prerequisite lands, port libobs/obs-output-get-name.c.h to obs-output and move the C unit into its reference-only ported group.
Preserve the exact obs_output_get_name(const obs_output_t *) C ABI and borrowed context.name pointer, repeated-read pointer identity, generated/current context-name behavior, and exact NULL LOG_DEBUG diagnostic. No string copy or ownership change. Existing C tests, including test_output_get_name and test_context_names, remain unchanged.
Acceptance: RED/GREEN commits; safe Tier 1 mirrors of the characterization, minimal FFI with NULL validation before any field accessor, real-header layout and original-C differential/mutation checks, unchanged Tier 2 against hybrid and C reference plus symbol parity. Keep the existing category test binaries. Register source groups and all native inventories; run relevant native-build/link checks and lint. Tier 4 does not apply to this getter; no WebSocket or public-header changes.
Dependency: #5300 must merge before implementation. This issue tracks only the Rust swap, not the prerequisite extraction.
Claiming: Rust swap of obs_output_get_name on branch port/5302-output-get-name.
RED: safe Tier 1 tests mirroring test_output_get_name in the existing obs-output category binary, against a stub core.
GREEN: safe core plus a thin FFI shim that validates NULL (exact LOG_DEBUG text) before any field read and returns the borrowed context.name pointer; move the C unit into its reference-only ported group; differential and mutation checks against the original C; unchanged Tier 2 on the hybrid and C reference builds.
Lint, open the PR within the hour, queue when green.
Activity
rdoupe commentedon Nov 20, 2026
/ready
Its only prerequisite, #5300, landed in #5306 and is closed.
rdoupe commentedon Nov 20, 2026
Claiming: Rust swap of obs_output_get_name on branch port/5302-output-get-name.
test: mirror output name getter characterization (RED, Refs #5302)
obs-output: swap output name getter to safe Rust (Refs #5302)
rdoupe commentedon Nov 20, 2026
Done in #5358 (merged 2026-11-20): obs_output_get_name now runs through safe Rust in obs-output, C unit moved to its reference-only ported group.
obs-output: swap output name getter to safe Rust (Refs obs-rust#5302) (…