Skip to content

libobs: extract and characterize service handler getters (Refs #3840) - #5013

Merged
zackees merged 2 commits into
masterfrom
test/3840-service-handler-getters
Nov 18, 2026
Merged

zackees merged 2 commits into
masterfrom
test/3840-service-handler-getters

Conversation

@zackees

@zackees zackees commented Nov 17, 2026

Copy link
Copy Markdown
Member

Extract obs_service_get_signal_handler and obs_service_get_proc_handler verbatim into libobs/obs-service-handler-getters.c.h before their Rust swap. The existing unity group still compiles both implementations, with their hidden visibility and behavior unchanged.

Add C characterization for each NULL diagnostic, all four combinations of nullable handler fields, repeated borrowed-pointer results, and unchanged service bytes. The native test graph builds the actual extracted C source. An opt-in declaration-only mode lets the later Rust-static registration reuse this test unchanged.

Refs #3840 (handler slice only). Rust follow-up: #5002; land this prerequisite first. This PR contains no Rust implementation, so Rust Tier 1 RED/GREEN, the C-oracle differential/mutation test, and real-adapter Rust-static link support belong to that follow-up. Tier 4 does not apply.

Validation:

  • Exact text comparison confirms the extracted declarations and bodies match master.
  • Build-group policy: 10 tests passed; clang-format 22.1.3 passed; no max_align_t in the new C files.
  • Windows MSVC workspace test binaries: linked successfully from Linux (exit 0).
  • Application native build contracts: 279 tests passed (plus two child invocations).
  • Full SOLDR_PORCELAIN=0 ./lint: passed (117.2 s; final lane lint: ok).
  • New fixture compiled with GCC -Wformat-nonliteral -Werror and passed against C reference and hybrid (one case in each mode).

Publication: the worker's final backpressure check exited 75 (11 in flight, limit 10), so only the verified branch was pushed. Open a PR when admission permits; no PR or auto-merge was created by this worker.

  • Full local Linux Tier 2 did not complete: unrelated obs-preflight-ffi failed in soldr with Read-only file system (os error 30) on the /ro source mount. The remaining unrelated build was stopped after preserving this failure. Hosted Tier 2 remains required before merge. See tier2-environment-failure.txt in this response directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant