Skip to content

rust: Port the extracted output name getter to obs-output #5302

Closed

Description

@zackees

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.

Activity

  1. added
    port
    P2
    size:S
    on Nov 19, 2026
  2. rdoupe commented on Nov 20, 2026

    @rdoupe
    Collaborator

    /ready

    Its only prerequisite, #5300, landed in #5306 and is closed.

  3. added
    ready
    on Nov 20, 2026
  4. rdoupe commented on Nov 20, 2026

    @rdoupe
    Collaborator

    Claiming: Rust swap of obs_output_get_name on branch port/5302-output-get-name.

    1. RED: safe Tier 1 tests mirroring test_output_get_name in the existing obs-output category binary, against a stub core.
    2. 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.
    3. Lint, open the PR within the hour, queue when green.
  5. rdoupe commented on Nov 20, 2026

    @rdoupe
    Collaborator

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2portreadysize:S

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions