Skip to content

libobs: characterize and extract obs_apply_private_data #5328

Closed

Description

@zackees

Characterize and extract only obs_apply_private_data from libobs/obs.c.h:2987-2993 into libobs/obs-apply-private-data.c.h, preserving its body verbatim and registering it alphabetically in the core unity group and all native manifests used by sibling extractions.

This Lane C prerequisite retains the native core projection and already ported obs_data_apply. NULL settings returns before touching the core; initialized-core applications merge into obs->data.private_data, preserve its identity and unrelated keys, and replace matching user values. Add a separate portable cmocka characterization using the existing core private-data fixture, covering empty/nonempty destination, NULL before startup and after initialization, empty input, caller independence and retained lifetime after shutdown. Do not edit existing C tests/public headers or introduce link_support files. MSVC /W4 conversions must be explicit.

Validate the focused characterization against hybrid libobs and libobs-c-reference, extraction identity, every affected manifest and full ./lint. Commit characterization RED (unregistered test) before registration/extraction GREEN. The separate Rust swap will follow after this prerequisite merges.

Live overlap check: all 21 open PR diffs (including paginated files for #4655) contain zero exact-symbol hits. #5246 and #5280 edit obs.c.h at old lines 2541-2826, outside this unit. Closed set/get issues #4791/#4796 and merged #4912 explicitly exclude apply. Pool scout H rank 2 waits for this obs.c.h extraction. Evidence: scout-h units-2026-11-20h.md.

Activity

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

    @zackees
    MemberAuthor

    Claiming: obs_apply_private_data characterization and verbatim extraction in branch test/5328-apply-private-data (slot obs-studio7). 1. Add focused portable cmocka characterization with RED missing-registration evidence. 2. Extract only the existing body and register every sibling manifest, then validate both library implementations and full lint. 3. File the separate Rust-swap follow-up and open the prerequisite PR this session.

  3. zackees commented on Nov 21, 2026

    @zackees
    MemberAuthor

    Done: the characterization and extraction merged in #5334 (4a4d92b), and the Rust swap followed in #5361.

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

Metadata

Metadata

Assignees

Labels

P2enhancementportreadysize:S

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions