Repository navigation
libobs: characterize and extract hotkey key-translation query (Refs #5309) - #5320
Merged
Merged
Conversation
zackees
enabled auto-merge
November 20, 2026 01:34
This was referenced Nov 20, 2026
This was referenced Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
obs_get_hotkey_translationstill shared the hotkey monolith, preventing an independent Rust replacement. Extract it and the brief's optional C-ownedobs_hotkeys_store_key_translationsibling verbatim intolibobs/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_NONEreturns 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
fdb93eb9dfailed preprocessing the fixture because the extraction include was absent. GREEN1fe747c2esupplies the verbatim extraction; final source head281af8f67moves the registration member away from the adjacent sibling extraction. Both original function bodies were checked byte-for-byte. Validation: all 322native_build::tests passed on the final source, nineteen focused inventory/build-policy tests passed, and the single fullSOLDR_PORCELAIN=0 ./lintrun 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