Skip to content

libobs: characterize and extract data-path add/remove wrappers #5355

Done

Description

@zackees

The public obs_add_data_path and obs_remove_data_path wrappers remain embedded in libobs/obs.c.h. Existing core-setup tests cover duplicates and failed removal, but do not pin copied caller storage or NULL/empty inputs.

Characterize the existing C API and extract both wrappers verbatim into libobs/obs-data-paths.c.h, retaining the single process-global darray in the core unity group. Preserve insertion order, duplicates, first equal removal, dstr ownership, NULL/empty behavior, and use before startup/after shutdown. No public headers or existing C tests change.

This is the behavior-neutral prerequisite to a separate Rust swap required by testing-policy.md. Tier 2 runs the new and existing public API tests against C reference and hybrid libobs. Rust Tier 1/3 apply to the later swap; Tier 4 is inapplicable to this non-network unit.

Activity

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

    @zackees
    MemberAuthor

    Claiming: scout-h rank 2 data-path add/remove characterization and extraction. 1. Add portable public-API ownership, duplicate, NULL/empty and lifecycle coverage. 2. Extract the two wrappers without behavior changes, retaining shared native storage. 3. Run the requested native-build, formatting, focused Tier 2 and lint checks, then publish subject to backpressure. First PR expected this session. Decisions: testing policy requires the Rust swap in a follow-up after this extraction lands.

  3. self-assigned this
    on Nov 20, 2026
  4. zackees commented on Nov 21, 2026

    @zackees
    MemberAuthor

    Continuing the accepted pool claim from 2026-11-20 in obs-studio2. Imported the saved RED/extraction commits read-only; rebasing onto current master, then validating formatting, native_build, both focused Tier 2 modes, and full lint before publishing the extraction PR.

  5. moved this from In progress to Ready in obs-rust Multiviewon Nov 22, 2026
  6. rdoupe commented on Nov 23, 2026

    @rdoupe
    Collaborator

    Is this still in progress? The claim is past 48 h with no PR or pushed branch I can find (the swap, #5397, waits on it). If you've parked it, release it and I'll take the extraction.

  7. rdoupe commented on Nov 24, 2026

    @rdoupe
    Collaborator

    Taking over stale claim from @zackees
    No reply in the day since I asked, and no PR or pushed branch for the extraction. Plan: add public-API characterization (test_data_paths: copied caller storage, duplicates, first equal removal, NULL/empty, before startup/after shutdown) RED on master, then extract both wrappers verbatim into libobs/obs-data-paths.c.h in the core unity group. If you still have the branch, say so and I will hand it back.

  8. rdoupe commented on Nov 24, 2026

    @rdoupe
    Collaborator

    PR: #5577 (characterization RED, verbatim extraction GREEN, mutation-checked against both libraries).

  9. moved this from Ready to In progress in obs-rust Multiviewon Nov 24, 2026
  10. rdoupe commented on Nov 24, 2026

    @rdoupe
    Collaborator

    Done by #5577 (merged as e729c3f); the Rust swap continues in #5584 for #5397.

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

Metadata

Metadata

Assignees

Labels

portreadysize:S

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions