You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
meta: Phase 6 libobs core migration through opaque C seams #444
Track Phase 6 of the libobs core port through opaque public C handles and controlled private seams. The public C API/ABI remains compatible; obs-internal.h is private and can change only after its remaining C field users are adapted or ported.
Work
Inventory exported symbols, public layouts, opaque handles, and direct users of each obs-internal.h field before changing that field.
Characterize obs-data behavior in new C tests against the original implementation: JSON parsing and error cases, reference counts, user/default/autoselect precedence, arrays, and file save/load behavior. Keep these tests unchanged for the Rust swap.
Extract a small, behavior-neutral C unit per PR from any large file before its Rust replacement. Preserve existing C tests and record the extraction baseline.
Port obs-data.c first behind obs-data.h opaque handles. Preserve Jansson-compatible behavior and exported symbols. Use all four test tiers from the testing policy.
Port obs-properties.c, the hotkey name map, and the effect/shader parser as separately claimable units, each with characterization and the four test tiers.
Introduce internal accessors or adapter seams for remaining C users before changing obs-source, scene, output, or obs.c private layouts. Move source-profiler.c here from Phase 4 because it directly uses source and graphics internals.
Validate the full app with ENABLE_RUST_LIBOBS=ON and the release criteria once the dependent units are ready.
Coordination
Claim a single unit before coding, search existing PRs, and use RED then GREEN commits as required by docs/rust-port/coordination.md. Do not edit public C headers or existing C tests to make a port pass. Track related full-app, performance, and oracle work in #140, #142, and #145.
Claiming: the obs-data.c characterization and port.
Tracked in #784. obs-properties.c, the hotkey name map, and the effect and shader parsers stay unclaimed. Please add the claimed label on #784; I cannot.
Filed and claimed the first effect/shader-parser slice as #839 (the three exported name lookups in shader-parser.c). The struct shader_parser part and effect-parser.c need their own scoping: the GL/D3D11 backends read struct shader_parser directly, and ep_parse compiles through the graphics device.
Intentional difference in the module list calls port (#4465, PR #4467): obs_log_loaded_modules() with no core (before obs_startup() or after obs_shutdown()) now logs nothing and returns. The C logs the heading and then reads the core's first module without checking the core, so it crashed. It is listed in module_lists_parity's header and rust/README.md; the parity test leaves out exactly that call, and log_with_no_core_logs_nothing pins it on the Rust side.
Activity
nathan-v commentedon Oct 15, 2026
Claiming: the
obs-data.ccharacterization and port.Tracked in #784.
obs-properties.c, the hotkey name map, and the effect and shader parsers stay unclaimed. Please add the claimed label on #784; I cannot.test: characterize obs-data.c before port
test: characterize obs-data.c before port (obs-rust#788)
obs-data: Add failing port of the data tests
obs-data: Port libobs/obs-data.c
obs-data: Add failing port of the data tests
obs-data: Port libobs/obs-data.c
obs-data: Add failing port of the data tests
obs-data: Port libobs/obs-data.c
obs-data: Port libobs/obs-data.c (obs-rust#801)
zackees commentedon Oct 15, 2026
Filed and claimed
obs-properties.cas #828.zackees commentedon Oct 15, 2026
obs-properties.cis ported (#828, #832). Still unclaimed from the list: the hotkey name map and the effect/shader parser.zackees commentedon Oct 15, 2026
Filed and claimed the hotkey name map as #833.
zackees commentedon Oct 15, 2026
Filed and claimed the first effect/shader-parser slice as #839 (the three exported name lookups in
shader-parser.c). Thestruct shader_parserpart andeffect-parser.cneed their own scoping: the GL/D3D11 backends readstruct shader_parserdirectly, andep_parsecompiles through the graphics device.88 remaining items
rdoupe commentedon Nov 10, 2026
Intentional difference in the module list calls port (#4465, PR #4467):
obs_log_loaded_modules()with no core (beforeobs_startup()or afterobs_shutdown()) now logs nothing and returns. The C logs the heading and then reads the core's first module without checking the core, so it crashed. It is listed inmodule_lists_parity's header andrust/README.md; the parity test leaves out exactly that call, andlog_with_no_core_logs_nothingpins it on the Rust side.