Repository navigation
libobs: Extract module initialization before its Rust port - #4166
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #4160
obs_init_modulestill lives inside the large module loader, so replacing it with Rust requires first separating the C unit. This prerequisite moves its body byte-for-byte tolibobs/obs-module-init.c.h, registers it in the existing core unity group, and records its target crate in the naming table. The sameloadingModuleglobal is defined beside the initializer and declared externally for the registration callers. No behavior, ABI, public header, existing C test, Rust code, or module-list call changes.This is the separate behavior-neutral extraction required by the testing policy. RED/GREEN Rust commits belong to follow-up #4164 after this prerequisite lands. Existing
test_core_module_loadcalls the initializer and checks registration ownership for source, output, encoder and service types.Validation: full lint passed, including the build-group checks; workspace formatting passed using a matching soldr verdict. The original and extracted function bodies are byte-identical. Both bodies passed focused GCC and Clang harnesses at O0 and O2 with AddressSanitizer and UndefinedBehaviorSanitizer (eight runs). The harness covers missing module/core, already-loaded early return, success, failure and retry, callback loading-module identity and reset, profiling and warning arguments. This harness uses stand-ins and does not replace Tier 2 validation. The unchanged C tests against hybrid and C-reference libobs and exported-symbol parity were not run locally; PR CI supplies those checks. No new Rust test binary or test-graph change.
Claim accepted on #4160 for pool im-module, slot obs-studio10. No user-visible change or features-ledger update. The lane remains partly unported; the module-name and whole-field-size wrappers are false gaps, and module-list work is excluded.