Skip to content

rust: Port libobs name registry lookups to obs-core (characterize and extract prerequisites) #5686

Todo

Description

@zackees

Phase 6 prerequisite for porting the public output, encoder and service name lookups in libobs/obs.c.h (1700-1713) to obs-core. The three complete bodies remain C and share the private get_context_by_name engine; no Rust swap is included here.

Direct characterization is incomplete: test_encoder_init and test_service_lifecycle cover a successful lookup and removal, while no tracked cmocka source invokes obs_get_output_by_name. Add one portable actual-library cmocka suite for exact/missing/case-sensitive names, registry separation, public/private services, renaming and retained-return ownership through final release. Run it against hybrid libobs and libobs-c-reference. Register once in test-graph.json with SIMDe::SIMDe explicitly linked.

Deliver characterization as the first PR, followed by a separate stacked behavior-neutral extraction PR moving the three wrappers verbatim to their own .c.h in libobs.core. Keep the shared lookup engine and callbacks behind a private declaration arrangement; no public-header or existing-test changes. Check merge-tree against neighboring extractions #5645, #5649 and #5663 (adjacent). Rust Tier 1/Tier 3 and protocol Tier 4 do not apply to these C-only prerequisites. A later Rust swap must satisfy all applicable tiers.

Acceptance: the added suite passes both backends, extraction preserves the three function bodies byte-for-byte, build-group checks pass, and overlap ordering is recorded. Manager authorizes held unarmed draft publication while backpressure is closed.

Activity

  1. added
    ready
    on Nov 25, 2026
  2. zackees commented on Nov 25, 2026

    @zackees
    MemberAuthor

    Claiming: characterize and extract the output/encoder/service name registry getters in pool slot obs-studio6. 1. Add direct actual-library cmocka characterization in test/5686-name-registry-lookups. 2. Publish a separate stacked verbatim extraction PR. First held draft expected this session; admission exception permits unarmed drafts while backpressure is closed. No Rust swap.

  3. moved this from In progress to Ready in obs-rust Multiviewon Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions