Skip to content

libobs: characterize and extract obs_enum_scenes (Refs #4801) - #4803

Merged
zackees merged 2 commits into
masterfrom
test/4801-enum-scenes
Nov 13, 2026
Merged

zackees merged 2 commits into
masterfrom
test/4801-enum-scenes

Conversation

@zackees

@zackees zackees commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

obs_enum_scenes is still embedded in the core C file. This prerequisite characterizes the exported wrapper and extracts its complete definition verbatim into obs-enum-scenes.c.h, registered alphabetically in the existing core unity group. It changes no behavior or API and contains no Rust.

Fixes #4801. Rust swap follow-up: #4802.

Characterization commit 11342cdd56d5516178036a0633dfcf82c14c275f precedes extraction. Its two portable cases cover empty enumeration, three public scenes plus a group in creation order, private-scene/input/other-canvas exclusion, agreement with direct main-canvas enumeration, opaque callback state, false-return stopping at every position, one temporary callback reference, independent retained references and balanced release, unchanged source activation/showing and canvas ownership. Groups are deliberately included: their existing source type is SCENE. No audio/video reset, sleeps or render-thread timing assumptions. Teardown removes canvas-owned scenes and drains destruction.

Before extraction, the new suite plus unchanged test_object_ref and test_canvas_signals passed five repeats against each actual hybrid/C-reference library (30 suite executions). All 1,768 dynamic exports match. A preload mutant that skips delegation failed the populated case at 0 != 4 (cmocka exit 1); original code passed. C-only characterization/extraction is the prerequisite; Rust RED/GREEN, Tier 1 and original-C Tier 3 belong to #4802. Tier 4 is inapplicable.

Extraction commit c830b99df66d9c2411117dc7e32b22adb6097295 moves the complete definition byte-for-byte; the parent differs only by removing that definition. After extraction, the same three suites passed five repeats against each actual library (30 more suite executions), loaded paths matched the intended hybrid/reference libraries and all 1,768 exports still matched. Exactly one full SOLDR_PORCELAIN=0 ./lint passed (exit 0); pinned formatting, build-group inventory and Windows cmocka diagnostics are included. Pinned-range self-review and git diff --check passed. Full Tier 2, native Windows/macOS runtime and sanitizers were not run locally; hosted PR CI remains the merge gate.

./push publishes through the required entry point but cannot issue client evidence: installed prooft rejects the newer data and swift ecosystem declarations in master’s attestation inventory. No workaround was used; ordinary hosted PR CI remains required. Existing C tests, public headers, WebSocket, workflows, shared native graph and Rust test binaries are unchanged. No user-visible behavior change requires a ledger line.

@zackees zackees changed the title test(libobs): characterize obs_enum_scenes (Refs #4801) libobs: characterize and extract obs_enum_scenes (Refs #4801) Nov 13, 2026
@zackees
zackees enabled auto-merge November 13, 2026 02:09
@zackees
zackees added this pull request to the merge queue Nov 13, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 13, 2026
@zackees
zackees added this pull request to the merge queue Nov 13, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 13, 2026
@zackees
zackees added this pull request to the merge queue Nov 13, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 13, 2026
@zackees
zackees added this pull request to the merge queue Nov 13, 2026
Merged via the queue into master with commit be2810c Nov 13, 2026
41 checks passed
@zackees
zackees deleted the test/4801-enum-scenes branch November 13, 2026 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

libobs: Characterize and extract obs_enum_scenes

1 participant