Skip to content

rust: Port the obs-service lifecycle, references and activation to obs-output (#1846 unit 8, slice 3) #1920

Closed

Description

@zackees

Part of #1846 (unit 8, slice 3, the last). Follows #1899 (#1904) and #1913 (#1916).

Port the rest of libobs/obs-service.c.h to obs-output:

  • Type lookups by id: obs_service_get_module, obs_service_load_state.
  • Lifecycle: obs_service_create, obs_service_create_private, obs_service_destroy (deferred while active), obs_service_release.
  • References: obs_service_get_ref, obs_service_get_weak_service, obs_weak_service_get_service, obs_weak_service_addref / _release, obs_weak_service_references_service.
  • Activation (internal, called by outputs): obs_service_activate, obs_service_deactivate, obs_service_initialize.

The context helpers (obs_context_data_init, obs_context_data_insert/remove, obs_ref_*) stay C and are called through FFI; the signal/proc handler getters stay C (not public, see #1913). Exported symbols and public headers unchanged.

Tests: Tier 2 cmocka characterization test_service_lifecycle first (create/release counts via plugin callbacks, weak refs, load state for a registered type without a module, destroy-while-active through an output), then Tier 1, Tier 3 differential against the oracle, port_comparison numbers.

Activity

  1. zackees commented on Oct 23, 2026

    @zackees
    MemberAuthor

    Claiming: #1920.

    1. test PR: cmocka characterization test_service_lifecycle (Tier 2).
    2. port PR after obs-output: port the obs-service settings, properties and identity functions (#1913) #1916 lands.
  2. added
    claimed
    on Oct 23, 2026
  3. zackees commented on Oct 23, 2026

    @zackees
    MemberAuthor

    Done: Tier 2 characterization #1921, port #1923 (merged). With #1904 and #1916, obs-service.c.h is ported to obs-output except the two non-public signal/proc handler getters and the context/ref helpers, which stay C behind hidden accessors.

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

    claimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions