Skip to content

test: Extract and characterize hotkey key-translation query before Rust swap #5309

Closed

Description

@zackees

C-only Phase 6 prerequisite for obs_get_hotkey_translation, currently in libobs/obs-hotkey.c.h:553-560. Extract its body verbatim into libobs/obs-hotkey-key-translation.c.h before the separate Rust swap, following merged #5287.

Characterize OBS_KEY_NONE returning NULL before accessing obs, stored translation pointer identity, unset-key fallback, NULL default passthrough, and pointer identity after re-storing through obs_hotkeys_store_key_translation. Retain the unlocked read and C-owned translation array and allocator. No lock, bounds-policy, signature or behavior change.

Add one portable C characterization with a callable external seam for the later swap, its tests.d pointer and sorted canonical graph; update all affected isolated hotkey consumers, expected inventories and the sorted core unity group. No Rust code, public-header, existing-C-test, WebSocket, workflow or link-support edits.

Acceptance: separate RED and GREEN commits; whole native_build:: module, focused Linux Tier 2 for the new target and EVERY *_rust target, and full ./lint once. Tiers 1/3 belong to the later Rust swap; network Tier 4 does not apply. No user-visible change.

No existing issue or PR covers this query after searching its symbol and translation topic. Sibling #5305 extracts a distinct function in the same monolith; screen it and #5246/#5307 with merge-tree before publishing. Pool slot: fix5159.

Activity

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

    @zackees
    MemberAuthor

    Claiming: hotkey key-translation query characterization and behavior-neutral extraction. Pool slot: /home/niteris/dev/obs-rust/obs-studio2-extern/fix5159; branch test/5309-hotkey-key-translation. 1. Pin the five requested C behaviors with an external-swap seam and commit RED. 2. Extract only this function and reconcile graph/unity/inventories for GREEN. 3. Run whole native_build::, focused Linux Tier 2 including EVERY *_rust target, and ./lint once, screen sibling PR merges and publish READY when backpressure permits. Expected first PR this session.

  3. zackees commented on Nov 20, 2026

    @zackees
    MemberAuthor

    Landed on master in #5320 (6bba02b): the hotkey key-translation query is extracted and characterized. The Rust swap is the follow-up named in #5320.

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

Metadata

Metadata

Assignees

Labels

P2portreadysize:S

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions