Skip to content

rust: Port obs-scene item ID getter to obs-scene #3865

Closed

Description

@zackees

Unit

obs_sceneitem_get_id from libobs/obs-scene.c.h to the existing obs-scene crate.

Phase and position

Phase 6 read-only scene-item accessor slice; native child of #444. Follows selected/locked #3855 / #3859, without depending on its implementation.

Dependencies and existing tests

No Rust implementation on origin/master: git grep finds only the obs-sys declaration and obs-mcp caller. No active overlapping issue or open/recent merged PR found. Add C-only actual-library characterization before extraction; preserve that test unchanged for the Rust swap.

Acceptance

Preserve null return 0 and its debug diagnostic, and every signed 64-bit stored ID without item mutation. Verbatim C extraction in its own commit, Tier 1 RED then safe Rust GREEN, real-header prefix layout checks, Tier 3 randomized differential and mutation check with persistence disabled, unchanged Tier 2 against both actual libraries with loader-path proof and identical exports. Reuse Core state category binary. Tier 4 does not apply; no intended behavior differences.

Scope

Only the item ID getter. No setters, lifecycle, transform/bounds or blending getters, public headers, existing C tests, or websocket changes.

Activity

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

    @zackees
    MemberAuthor

    Claiming: scene item ID getter. 1. Characterize the actual C library including the null diagnostic, then extract verbatim. 2. Commit Tier 1 RED followed by Rust GREEN, real-header layout and differential tests. 3. Verify mutation sensitivity, both unchanged Tier 2 backends and identical exports. First draft PR expected this session.

  3. 20 remaining items

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

Metadata

Metadata

Assignees

Labels

P2enhancementportreadysize:S

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions