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
design: Strategy for porting the libobs core (public ABI vs obs-internal.h) #146
Leaf-first porting won't reach the core. obs-source.c (≈6k lines), obs-scene.c, obs.c, obs-output.c and graphics.c share state through obs-internal.h by direct field access; even util/source-profiler.c reads obs->video.graphics. The policy treats "the existing C header" as the contract, which applied to obs-internal.h would freeze internal layouts forever.
Proposal to discuss:
Two contracts: the public ABI (obs.h, opaque handles, exported functions) stays frozen; internal headers may change once all their C callers are ported or adapted.
Strangler seams through opaque-handle subsystems first: obs-data.c (≈2.2k lines, used everywhere, parses untrusted JSON), obs-properties.c, the hotkey name map, the effect/shader parser.
Make function extraction (as done for path-extension, cf-tokenizer, profiler-snapshot, dstr-libc) the standard way into large files.
Move source-profiler.c here from Phase 4: it is core code.
Output: a testing-policy.md change and a Phase 6 tracker.
Completed in #445 (merge a3f3264). The testing policy now defines the public ABI/private core boundary, the obs-data first seam, and the source-profiler Phase 6 move. Follow-up work is tracked in #444. Local lint, unit suite, OFF/ON symbol parity, and the stamped local gate passed.
Activity
zackees commentedon Oct 13, 2026
Claiming: Phase 6 libobs-core strategy.
zackees commentedon Oct 13, 2026
Completed in #445 (merge a3f3264). The testing policy now defines the public ABI/private core boundary, the obs-data first seam, and the source-profiler Phase 6 move. Follow-up work is tracked in #444. Local lint, unit suite, OFF/ON symbol parity, and the stamped local gate passed.