Skip to content

libobs: characterize and extract hotkey key-translation query (Refs #5309) - #5320

Merged
zackees merged 5 commits into
masterfrom
test/5309-hotkey-key-translation
Nov 20, 2026
Merged

zackees merged 5 commits into
masterfrom
test/5309-hotkey-key-translation

Conversation

@zackees

@zackees zackees commented Nov 20, 2026

Copy link
Copy Markdown
Member

obs_get_hotkey_translation still shared the hotkey monolith, preventing an independent Rust replacement. Extract it and the brief's optional C-owned obs_hotkeys_store_key_translation sibling verbatim into libobs/obs-hotkey-key-translation.c.h. The read remains unlocked, with the same borrowed pointers, defaults and unchecked key-range policy.

The new C-source characterization exercises the real store/query bodies with a recording core accessor: OBS_KEY_NONE returns NULL without reading the core; stored results retain pointer identity; unset keys return the exact default pointer; NULL defaults pass through; and re-store/empty-store/clear operations preserve the current slot identity and allocator balance. Its external seam is reserved for the separate Rust swap. Both functions remain callable C functions.

Register the tests.d pointer and sorted canonical graph, include the extraction in the sorted production unity group, and update all eleven isolated monolith consumers and thirteen expected inventories. No Rust implementation, public header, existing C test, link-support file, workflow or WebSocket code changed. This behavior-neutral prerequisite needs no features-ledger entry.

RED fdb93eb9d failed preprocessing the fixture because the extraction include was absent. GREEN 1fe747c2e supplies the verbatim extraction; final source head 281af8f67 moves the registration member away from the adjacent sibling extraction. Both original function bodies were checked byte-for-byte. Validation: all 322 native_build:: tests passed on the final source, nineteen focused inventory/build-policy tests passed, and the single full SOLDR_PORCELAIN=0 ./lint run passed (549.7 s). Focused Linux Tier 2 built the new target and EVERY configured *_rust target (68) through soldr-managed Rust shims. All five new C cases passed against each library plus 25 additional repeats per mode; ldd verified the selected library, and both export sets contain the same 1,769 symbols.

Publication went through ./push. Its optional client proof passed all six Clippy targets and five Dylint targets, then the macOS arm64 Dylint driver version probe exceeded its two-second deadline. prooft stamped no incomplete client-lint proof; ./push used its documented ordinary-PR-CI fallback. Complete client host tests/self-tests were not established by that failed proof invocation.

One-agent clud-review found no issues. Forced-refspec merge-tree checks are clean against #5246, #5307 and clud-63969's #5305; moving our array insertion removed the sibling's fourteen adjacency conflicts. The branch also merges cleanly with current master. Temporary refs were deleted. Native Windows/macOS execution and hosted checks remain unverified locally; Rust Tiers 1/3 belong to the follow-up swap, and network Tier 4 does not apply.

Refs #5309

@zackees zackees added pool-active Pool worker owns this PR; automated rebases must skip it and removed pool-active Pool worker owns this PR; automated rebases must skip it labels Nov 20, 2026
@zackees
zackees enabled auto-merge November 20, 2026 01:34
@zackees
zackees added this pull request to the merge queue Nov 20, 2026
Merged via the queue into master with commit 6bba02b Nov 20, 2026
45 checks passed
@zackees
zackees deleted the test/5309-hotkey-key-translation branch November 20, 2026 03:34
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.

1 participant