Repository navigation
obs-output: Port service state accessors (#3840) - #3850
Merged
Merged
Conversation
zackees
force-pushed
the
port/service-state-accessors
branch
from
November 7, 2026 08:32
3fe2e07 to
cc7ae60
Compare
zackees
marked this pull request as ready for review
November 7, 2026 08:43
zackees
enabled auto-merge
November 7, 2026 08:43
chriscoveries
pushed a commit
to chriscoveries/obsrust-fork
that referenced
this pull request
Nov 8, 2026
…-rust#3898) The obs-rust#1920 live-service fixture linked its service to 0x07. Since obs-rust#3850 deactivate detaches the service through obs_service_detach_from_output(), which writes the output's service field and aborted the bench with a misaligned pointer dereference. Allocate a zeroed struct obs_output from the oracle and free it with the other fixtures. Fixes obs-rust#3886 Co-authored-by: Claude Opus 5.5 <[email protected]>
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 #3840
Ports the first state-accessor slice only:
set_destroy,is_destroying,is_active,set_active,has_output,clear_output,detach_from_outputandget_control. The issue stays open for its other groups.A private C field-view seam follows the output-delay pattern, preserving the service and output storage without duplicating unrelated mutex and hash layouts.
detach_from_outputclears only the output's reverse link, even when it names another service;clear_outputclears only the service link;get_controltakes no reference. Plain bool and pointer accesses keep their C semantics, with no atomic changes. No public headers, existing C tests, workflows or obs-websocket changed. No protocol or user-visible change, so Tier 4, a real-app run and the features ledger do not apply.Commits
3ef98edd4: new C-only characterization files, tested before extraction or Rust.6098f1343: verbatim extraction. All eight signatures and bodies compare byte-identical to master, including after rebasing onto obs-output: Port service weak acquisition accessors (#3837) #3842.3d07c8085: separate C field-view seam.47e147b51: RED.d466ff3c5: GREEN.cc7ae60fc: explicit unsigned cast in the new oracle observation helper, which strict Clang required.Results
soldr cargo test -p obs-data --test obs-tests-core output::service_stateexits 101, 0 passed and 2 failed at the rust: Port obs-service context, state and handler accessors to obs-output #3840 stubs (run on the pre-rebase RED commit7ec409d15).SOLDR_PORCELAIN=0 SOLDR_RUSTC_WRAPPER=none OBS_PARITY_CASES=reduced soldr cargo test -p obs-data --test obs-tests-core output::serviceexits 0, 46 passed and 0 failed.set_destroyexits 101, 2 passed and 3 failed (Tier 1, fixed differential, generated differential). The exact GREEN file was restored and the 46 tests rerun.clud-reviewreviewer: clean.Not verified locally
./lintpassed its formatting, Python and Clippy lanes, then exited 1 only at the documented soldr refusal to build the Dylint driver under clud. Hosted Fast Gate must run Dylint. No local-gate stamp.🤖 Generated with Claude Code