Skip to content

obs-outputs: net-if host code behind net-if-host.h and hosts/<os>/net-if-os.h (#851) - #2076

Merged
zackees merged 3 commits into
masterfrom
facade/851-net-if
Oct 24, 2026
Merged

zackees merged 3 commits into
masterfrom
facade/851-net-if

Conversation

@zackees

@zackees zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member

Refs #851 (slice 1 of 3: net-if.c.h/net-if.h, 13 conditionals).

  • hosts/{windows,posix}/net-if-os.h: net-if.h's socket headers (moved verbatim), found through a hosts/<os> include directory (plugin target, test/cmocka directory scope, cross check), as in obs-ffmpeg: SRT/URL host code behind hosts/<os>/obs-ffmpeg-net-host.h, AMF PCH named for its host (#853) #2068.
  • net-if-host.h + net-if-host-{windows,posix}.c.h: address print (InetNtopA/inet_ntop), parse (WSAStringToAddressA/inet_pton), interface list (GetAdaptersAddresses/getifaddrs), moved verbatim; the shared net-if.c.h keeps the list building and calls the host. Own unity groups/PCHs, selected by PLATFORM_ID.
  • cmake/cross: obs-outputs had no entry; the two host groups are added (win-x64, mac-arm64).
  • test-graph.json: test_rtmp_dbr_user_bitrate/test_rtmp_send_thread_leak (Linux-only) also build net-if-host-posix.c.h.
  • Baseline: net-if.c.h, net-if.h removed.

RED: 1a50b76 adds test_obs_outputs_net_if_host (Tier 2: IPv4/IPv6 round trip, garbage rejected, loopback left out of the list); fails to build, no POSIX host.
GREEN: next commits. Locally the new test and all test_rtmp_* pass; cross win-x64 + mac-arm64 compile. Local-only failures are native-core canvas/shutdown tests (#2049 family) and test_deinterlace_2x_field_order, unrelated.

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

@zackees
zackees enabled auto-merge October 24, 2026 07:17
@zackees

zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member Author

Coordinator: rebased onto master. The only conflict was test/cmocka/CMakeLists.txt, where #2068 added the obs-ffmpeg hosts include next to this PR's obs-outputs one. I kept both. Auto-merge is still on.

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