Skip to content

rust: Port obs-source-type-info.c.h to obs-source #4719

Closed

Description

@zackees

Unit

Port libobs/obs-source-type-info.c.h to obs-source: obs_get_source_output_flags, obs_source_get_display_name, and obs_is_source_configurable as one coherent source-type metadata unit.

Phase and position

Phase 6 libobs source metadata. Depends on the C characterization and verbatim extraction in #4718 landing first. Do not start this swap while the prerequisite is open. The shared lookup implementation belongs to #4606 / #4608, which is distinct work.

Dependencies and existing tests

The prerequisite adds test/cmocka/test_source_type_info.c against actual hybrid/C-reference libraries. Keep it unchanged during the swap. The extracted bodies use the existing extern get_source_info seam and public obs_source_info fields/callbacks; no new private static helper is needed.

RED then GREEN safe-core tests in the existing Core category binary, mirroring all characterization assertions; a thin C ABI shim with real header layout checks; original-C Tier 3 differential and mutation checks; unchanged Tier 2 against hybrid/reference and dynamic-symbol parity. Register its own ported unity/source-set and export fragments. Avoid test-graph.json/native.rs changes. Tier 4 is inapplicable.

Notes

Preserve one lookup per call, zero/NULL/false on no match, exact flags, and exactly one get_name(type_data) call with borrowed pointer identity including NULL. Configurable means get_properties OR get_properties2, never defaults-only, and invokes neither callback. Do not add a found-record missing-get_name guard or a wrapper-specific NULL policy; the existing lookup owns ID semantics. The C reference's populated-registry NULL input and no-core calls are outside the characterized valid domain. Any intentional lookup differences in #4608 must stay explicit. No public header, existing C test, obs-websocket or workflow edits.

Activity

  1. added
    enhancement
    port
    P2
    size:S
    on Nov 11, 2026
  2. zackees commented on Nov 11, 2026

    @zackees
    MemberAuthor

    Claiming: source type metadata Rust swap in port/4719-source-type-info (slot obs-studio2, swap-4719), stacked on test/4718-source-type-info-extract at 45d4798 per maintainer assignment. 1. Commit RED Tier 1 characterization in the existing Core binary. 2. Reuse source lookup and add safe core, thin ABI/layout bridge and original-C Tier 3 parity/mutation coverage. 3. Replay unchanged Tier 2 on both libraries, check Windows links, run full lint once and publish branch only; no PR while the prerequisite is pending.

  3. added
    ready
    on Nov 11, 2026
  4. moved this from In progress to Ready in obs-rust Multiviewon Nov 13, 2026
  5. rdoupe commented on Nov 16, 2026

    @rdoupe
    Collaborator

    Done on master by #4733, which landed this swap but said "Refs", so the issue stayed open. Closing it so it no longer shows as unclaimed Ready work.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2enhancementportreadysize:S

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions