Repository navigation
obs-output: port the obs-service settings, properties and identity functions (#1913) - #1916
Merged
Merged
Conversation
zackees
force-pushed
the
port/1899-service-getters
branch
from
October 23, 2026 08:07
b7f0815 to
7a42744
Compare
zackees
force-pushed
the
port/1913-service-settings
branch
from
October 23, 2026 08:16
1b967d6 to
2491692
Compare
Seven Tier 1 cases from test_service_settings.c fail against todo!() stubs: 'not yet implemented: #1913'.
…ons for the obs-output port (#1913) Moves obs_service_get_display_name, _defaults, obs_get_service_properties, _get_name, _get_type, _get_id, _get_type_data, _update, _get_settings, _properties and _apply_encoder_settings into obs-service-getters.c.h behind the hidden context accessors, exports the Rust shims, and adds the Tier 3 parity test against the oracle. GREEN: Tier 1 and Tier 3 pass.
zackees
force-pushed
the
port/1913-service-settings
branch
from
October 23, 2026 09:06
2491692 to
30aaff9
Compare
Member
Author
|
Coordinator: Fast Gate fails in the export-list checks, not in the port itself: The new |
Member
Author
|
Fixup: the swap commit had emptied |
10 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #1913 (#1846 unit 8, slice 2). Stacked on #1904 (slice 1); retarget to master once it merges. Tier 2 characterization is #1914 (
test_service_settings).RED
3790521:
todo!()stubs inobs_output::serviceplus Tier 1 (rust/obs-output/tests/output/service_settings.rs, the cases oftest_service_settings.cagainst a fake host/type/service). All 7 fail:not yet implemented: #1913.GREEN
display_name,defaults,type_properties(by id),name,type_id,id,type_data,properties,update,settings,apply_encoder_settings. Same check order and NULL-log names as the C.obs_service_get_display_name,obs_service_defaults,obs_get_service_properties,obs_service_get_name,_get_type,_get_id,_get_type_data,_update,_get_settings,_properties,_apply_encoder_settingsfromobs-service.c.hintoobs-service-getters.c.h(the ported group, dropped from hybrid libobs). It also adds the hiddenobs_service_get_context_name()/_get_context_settings()accessors and the export names. The shims callfind_service(),obs_data_*andobs_properties_apply_settingsin libobs.obs_service_get_signal_handler/_get_proc_handler. No public header declares them (upstream quirk), so exporting them from Rust would add symbols that were never public API.soldr cargo test -p obs-data --test obs-tests-core output::service: 19 passed (slice 1 and slice 2)../lint: 0.Tiers
service_settings_parity.rsruns every function on the Rust and the oracle C. Both sides share the samestruct obs_serviceandfind_service()table. It covers all 32 combinations of {get_defaults, get_properties, update, apply_encoder_settings, type_data}, a NULL service and a missing id. It compares returns, settings contents (realobs_datafrom the Rust crates) and the plugin call trace (including the properties' modified callback).port_comparison (Rust / C, ns)
get_name 4.69 / 2.07, get_id 3.98 / 2.33, get_display_name 6.64 / 6.33, apply_encoder_settings 4.68 / 5.69. On
get_name/get_id, the ~2 ns gap is the wrapper fetching the info table and plugin data through two hidden accessor calls before it reads the field. The C reads the fields directly.Not user-visible, no features.md line.