Skip to content

rust: Port obs-service context, state and handler accessors to obs-output #3840

Closed
1 of 1 issue completed

Description

@zackees

Phase 6 follow-up inventory from #3837 after #1904/#1916/#1923. Remaining libobs/obs-service.c.h units: context_new/insert/remove/free; set_info/set_plugin_data; set_destroy/is_destroying/is_active/set_active/has_output/clear_output/detach_from_output/get_control; get_signal_handler/get_proc_handler; get_info_table/get_plugin_data/get_context_name/get_context_settings. Split into individually reviewable coherent ports as needed. Existing getter/settings/lifecycle C tests characterize public callers; characterize missing hidden behavior first in a C-only commit. Extract each unit verbatim before Tier 1 RED/GREEN, real-header layout and Tier 3 differential/mutation tests, then unchanged Tier 2 on hybrid/reference and identical exported symbols. Preserve private layouts visible to C callers; no public-header or existing C-test edits. Existing hidden signal/procedure getters validate NULL and log under their own function names. No protocol change; no obs-websocket modifications. Module lookup is #3839, weak release/allocation #3838, weak acquisition #3837.

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. zackees commented on Nov 7, 2026

    @zackees
    MemberAuthor

    Claiming: obs-service state accessor slice, per pool assignment (obs-studio3).

    1. Characterize set_destroy/is_destroying/is_active/set_active/has_output/clear_output/detach_from_output/get_control in new C-only tests, then extract the C bodies verbatim.
    2. Port this slice to obs-output with Tier 1 RED/GREEN, real-header layouts, Tier 3 differential and mutation coverage.
    3. Validate unchanged Tier 2 against reference/hybrid and exports, then open and queue the PR. First draft expected this session. The issue remains open for all other groups; rust: Port obs-service weak acquisition accessors to obs-output #3837/rust: Port obs-service weak-control release and allocation primitives to obs-output #3838/rust: Port obs-service module lookup accessors to obs-output #3839 are excluded.
  2. added
    ready
    on Nov 7, 2026
  3. zackees commented on Nov 7, 2026

    @zackees
    MemberAuthor

    Blocked: state-accessor slice is implemented and pushed in draft PR #3850 at cc7ae60, rebased onto #3842. Final verification passed: 46 service Rust tests, focused unchanged C lifecycle/getter/settings tests 23/23 per library plus C-only state characterization, identical 1767 exports, mutation killed. A clud command guard refused the final PR-description update, misclassifying quoted lint evidence as a workspace-wide lint execution. Per the pool no-workaround rule, I have not retried or enabled auto-merge. Manager needs to finalize the PR body and queue it. Full evidence is in the pool response file; other #3840 groups remain untouched.

  4. added
    claim-blocked
    on Nov 7, 2026
  5. 9 remaining items

  6. moved this from In progress to Tracker in obs-rust Multiviewon Nov 19, 2026
  7. rdoupe commented on Nov 20, 2026

    @rdoupe
    Collaborator

    Claiming: obs-service info-table and plugin-data accessors (obs_service_set_info, obs_service_get_info_table, obs_service_set_plugin_data, obs_service_get_plugin_data).

    1. C-only prerequisite: characterize the four hidden accessors in a new cmocka test and extract them verbatim into their own live file and unity group (the libobs: extract and characterize service handler getters (Refs #3840) #5013 shape).
    2. Swap to obs-output in a follow-up PR: Tier 1 RED then GREEN, guarded real field adapter, real-header layout, Tier 3 differential and mutation evidence, unchanged Tier 2 on hybrid and C reference.

    The context lifecycle accessors (context_new/insert/remove/free) stay unclaimed.

  8. moved this from Tracker to In progress in obs-rust Multiviewon Nov 20, 2026
  9. rdoupe commented on Nov 21, 2026

    @rdoupe
    Collaborator

    Step 2 of my claim is up: the info-table and plugin-data accessor swap to safe Rust is in #5379 (RED 0dd0a09, GREEN 42419a6; Tier 2 passes on hybrid and the C reference, twin included).

  10. moved this from In progress to Tracker in obs-rust Multiviewon Nov 22, 2026
  11. rdoupe commented on Nov 23, 2026

    @rdoupe
    Collaborator

    Done. Every unit in this inventory is now Rust in obs-output except two kinds of C that stay:

    Last swap: #5379. Closing.

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