Skip to content

refactor(libobs): Extract obs_source_get_icon_type before its Rust port #4229

Closed

Description

@zackees

Phase 6 source seam prerequisite: move obs_source_get_icon_type verbatim from libobs/obs-source.c.h:4683-4687 into libobs/obs-source-icon-type-getter.c.h and register it in the existing core-source unity group. The testing policy requires the extraction to land before the Rust replacement in obs-source. Existing real-library characterization is test/cmocka/test_module_register_copy_steps.c:test_source_u32_field, which checks UNKNOWN and CAMERA icon types after registration at field-size boundaries. No public headers, existing tests, test graph, or native inventory changes are needed. Validate the byte-identical extraction, build-group checks, formatting and lint; unchanged C tests against hybrid/reference remain the eventual PR merge gate. Pool im-bo-source, obs-studio14, branch-only delivery; no PR until the manager drains the queue.

Activity

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

    @zackees
    MemberAuthor

    Claiming: obs_source_get_icon_type extraction prerequisite (pool im-bo-source, SLOT obs-studio14). 1. Preserve the existing real-library characterization and extract the function verbatim into its own implementation file. 2. Validate exact source equality, build registration, fmt and full lint once. 3. Push a branch-only deliverable and file the dependent Rust swap issue. Expected branch handoff this session; no PR under the explicit branch-only assignment.

  3. zackees commented on Nov 9, 2026

    @zackees
    MemberAuthor

    Progress: branch port/4229-source-icon-type-extraction is ready at 27b86c4; open PR when the queue drains. Explicit BRANCH-ONLY delivery, no PR opened. Mandatory extraction prerequisite only: function byte-identical to master, one sorted unity registration, three files, no Rust or graph changes. Existing real-library characterization test_source_u32_field remains unchanged. Verified exact extraction, build-group checks, fmt and full lint once (exit 0; lane lint: ok, 94.0s), plus diff checks. Local C runtime Tier 2/reference and symbol parity were not run; eventual PR CI must validate these. Rust swap follow-up is #4231 and must wait for this prerequisite to land. Claim acceptance remains pending with no refusal or competing claim observed. Manager handoff: NEEDS-HELP branch port/4229-source-icon-type-extraction ready, open PR when queue drains.

  4. moved this from In progress to Ready in obs-rust Multiviewon Nov 10, 2026
  5. zackees commented on Nov 18, 2026

    @zackees
    MemberAuthor

    Landed on master in #4321 (03f38d6); verified the merge is an ancestor of origin/master and libobs/obs-source-icon-type-getter.c.h exists there.

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