Repository navigation
Description
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.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Nov 11, 2026
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.
test(obs-source): characterize type metadata against RED stubs (Refs #…
feat(obs-source): swap source type metadata queries to Rust (Refs #4719)
feat(obs-source): swap source type metadata queries to Rust (Refs obs…
rdoupe commentedon Nov 16, 2026
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.