Skip to content

rust: Port the obs-service settings, properties and identity functions to obs-output (#1846 unit 8, slice 2) #1913

Closed

Description

@zackees

Part of #1846 (unit 8, slice 2). Follows #1899 (slice 1, PR #1904).

Port the settings, properties and identity functions of libobs/obs-service.c.h to obs-output:

  • By id: obs_service_get_display_name, obs_service_defaults, obs_get_service_properties (defaults applied).
  • On a service: obs_service_get_name, obs_service_get_type, obs_service_get_id, obs_service_get_type_data, obs_service_update (apply, then the plugin's update), obs_service_get_settings (adds a ref), obs_service_properties (settings applied), obs_service_apply_encoder_settings (skipped when both settings are NULL or the callback is missing), obs_service_get_signal_handler, obs_service_get_proc_handler.

Create/destroy, refs and activation stay C (slice 3). Fields are read through hidden accessors as in slice 1; exported symbols and public headers unchanged.

Tests: Tier 2 cmocka characterization test_service_settings first, then Tier 1 in obs-tests-core, Tier 3 differential against the oracle, port_comparison numbers.

Activity

  1. zackees commented on Oct 23, 2026

    @zackees
    MemberAuthor

    Claiming: #1913.

    1. test PR: cmocka characterization test_service_settings against the C (Tier 2).
    2. port PR after obs-output: port the obs-service getters to Rust (#1899) #1904 lands: RED Tier 1/3 against stubs, GREEN in obs-output, bench.
  2. added
    claimed
    on Oct 23, 2026
  3. zackees commented on Oct 23, 2026

    @zackees
    MemberAuthor

    Scope note: obs_service_get_signal_handler / obs_service_get_proc_handler have no prototype in any public libobs header, so they stay C in this slice (exporting them from Rust would add never-public symbols) and the Tier 2 test (#1914) doesn't call them. Port PR: #1916.

  4. zackees commented on Oct 23, 2026

    @zackees
    MemberAuthor

    Done: Tier 2 characterization #1914, port #1916 (merged). The signal/proc handler getters stay C (no public prototype). Last slice: #1920 (#1921, #1923).

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