Skip to content

libobs: graphics exports and imports per OS in graphics-{exports,imports}-<os>.h (#872) - #2131

Merged
zackees merged 2 commits into
masterfrom
facade/872-graphics-imports
Oct 24, 2026
Merged

zackees merged 2 commits into
masterfrom
facade/872-graphics-imports

Conversation

@zackees

@zackees zackees commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Refs #872 (slice 2 of 3: graphics-internal.h, graphics-imports.c.h).

  • struct gs_exports' host members (macOS IOSurface, Windows GDI/shared texture/duplicator, Linux/BSD dmabuf/pixmap/sync) move verbatim to graphics-exports-{macos,windows,linux}.h; the matching GRAPHICS_IMPORT lines to graphics-imports-{macos,windows,linux}.h. The shared files include all three; each list is guarded by its own OS (allowed in an OS-named file), so the member order and layout per OS are unchanged and no build wiring changes.
  • Baseline: graphics-internal.h, graphics-imports.c.h removed. Public headers untouched.

RED: d06b7a0 adds test_graphics_host_exports (Tier 2, Linux: the Linux import list is exactly the 11 required entry points in order; struct gs_exports keeps the dmabuf/sync members); fails to build, no graphics-imports-linux.h.
GREEN: next commit. Locally it passes; cross win-x64 + mac-arm64 compile (the macOS/Windows lists). Local-only failures: the usual unrelated set, plus test_transition_scale_type (from #2080, transitions, not graphics exports).

Tiers 1/3/4 n/a (C restructuring, no behavior change).

@zackees
zackees enabled auto-merge October 24, 2026 11:05
@zackees
zackees force-pushed the facade/872-graphics-imports branch from 4c57502 to 3669591 Compare October 24, 2026 11:14
@zackees
zackees added this pull request to the merge queue Oct 24, 2026
Merged via the queue into master with commit 80480f2 Oct 24, 2026
37 checks passed
@zackees
zackees deleted the facade/872-graphics-imports branch October 26, 2026 15:43
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