Repository navigation
obs-output: port the obs-service lifecycle, references and activation (#1920) - #1923
Merged
Merged
Conversation
zackees
force-pushed
the
port/1920-service-lifecycle
branch
from
October 23, 2026 09:56
d6b8365 to
9576fe5
Compare
zackees
enabled auto-merge
October 23, 2026 10:41
zackees
force-pushed
the
port/1920-service-lifecycle
branch
from
October 23, 2026 10:42
9576fe5 to
6b5c1de
Compare
Member
Author
|
Coordinator: #1916 landed. I retargeted this PR to master and rebased only its own four commits onto master ( |
zackees
force-pushed
the
port/1920-service-lifecycle
branch
from
October 23, 2026 10:46
6b5c1de to
4e8a33f
Compare
auto-merge was automatically disabled
October 23, 2026 10:46
Pull request was closed
14 Tier 1 cases for create, destroy (deferred while active), release, strong and weak refs, module lookup and activate/deactivate/initialize, against todo!() stubs. All 14 fail: not yet implemented: #1920.
create, destroy, release, the strong and weak ref functions, the module lookups and activate/deactivate/initialize in the C's order of calls. GREEN for Tier 1: 14 passed.
… the obs-output port (#1920) Moves obs_service_get_module, _load_state, _create, _create_private, _destroy, _activate, _deactivate, _initialize, _release and the strong and weak reference functions into obs-service-getters.c.h. struct obs_service, its context and its reference counts stay in obs-service.c.h behind hidden obs_service_*() / obs_weak_service_*() steps, which the Rust shims and the moved C both call. The 11 public names are exported; the 4 internal ones are hidden like the C. Tier 3 runs both sides over every callback table, a failing create() and both initialize() results, comparing results and the step and plugin-call trace, plus the module lookups. GREEN: Tier 1 and Tier 3 pass.
get_ref+release 11.04 / 10.89 ns, weak_get_service+release 10.59 / 10.54 ns, activate+deactivate 13.62 / 13.94 ns, load_state 25.88 / 23.65 ns (Rust / C, over the oracle's doubles).
zackees
force-pushed
the
port/1920-service-lifecycle
branch
from
October 23, 2026 11:08
4e8a33f to
232651a
Compare
6 of 7 tasks
This was referenced Oct 23, 2026
This was referenced Nov 7, 2026
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 #1920 (#1846 unit 8, slice 3, the last). Stacked on #1916 (base
port/1913-service-settings); Tier 2 is #1921.Commits
4cf36d8b1fix for obs-output: port the obs-service settings, properties and identity functions (#1913) #1916: its swap commit (dd0000293) emptiedlibobs/cmake/rust-exports.d/obs-output-service.txt, so obs-util'srust_exports_list_matches_no_mangle_shims/rust_exports_are_one_fragment_per_ffi_modulefail on obs-output: port the obs-service settings, properties and identity functions (#1913) #1916 and Windows would not/EXPORTthe 20 service shims. This restores the 9 slice-1 names and adds the 11 slice-2 names. It should be cherry-picked onto obs-output: port the obs-service settings, properties and identity functions (#1913) #1916.a94f8acebRED:todo!()stubs for the lifecycle core and 14 Tier 1 cases inrust/obs-output/tests/output/service_lifecycle.rs. All 14 fail:not yet implemented: #1920.608fd0360safe core inrust/obs-output/src/service.rs(LifecycleandModulestraits). Tier 1: 14 passed.4aa69f569GREEN swap (details below).d6b8365efport_comparison benches.What moved
obs_service_get_module,_load_state,_create,_create_private,_destroy,_activate,_deactivate,_initialize,_release,_get_ref,_get_weak_service, andobs_weak_service_get_service/_addref/_release/_references_servicemove intoobs-service-getters.c.h(the ported group).obs-service.c.h:struct obs_service, its context (obs_context_data_init/insert/remove/free,obs_context_init_control) and the reference counts (obs_ref_*,obs_weak_ref_*, which are static inlines). They sit behind 25 hiddenobs_service_*()/obs_weak_service_*()steps, declared inobs-internal.h. The moved C and the Rust shims call the same steps, so the struct layout stays private to C.create()that returns NULL still yields a service.obs_service_destroy,_activate,_deactivateand_initializehave noEXPORTin C, so they are hidden:rust-hidden.txt,rust-exports.map,rust-unexports-macos.txt.obs_service_get_signal_handlerand_get_proc_handler(no public prototype, see rust: Port the obs-service settings, properties and identity functions to obs-output (#1846 unit 8, slice 2) #1913), plus the context and refcount primitives above. Nothing else.Tiers
test_service_lifecycle(test: characterize the obs-service lifecycle and references (#1920) #1921), the public half. activate/deactivate/initialize have no public entry.service_lifecycle_parity.rsruns the C oracle and the Rust shims over the same test doubles.create(), and bothinitialize()results.SERVICE_GLOBALSintests/output/main.rs), becausefind_service()and the trace hook are process-wide.soldr cargo test -p obs-data --test obs-tests-core servicepasses (35 passed). obs-util's export-list tests pass../lintpasses.obs-service.c.handobs-service-getters.c.hpassgcc -fsyntax-only -Wall -Wextra -Wcast-qual -Werror.port_comparison (Rust / C, over the oracle doubles)
Not user-visible, so there is no features.md line.