Repository navigation
libobs: extract hidden service info-table and plugin-data accessors (Refs #3840) - #5367
Conversation
…s (Refs #3840) RED: the fixture compiles the extracted libobs/obs-service-info-accessors.c.h, which does not exist yet. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…Refs #3840) GREEN: obs_service_set_info, obs_service_get_info_table, obs_service_set_plugin_data and obs_service_get_plugin_data move verbatim from obs-service.c.h into their own file in the same unity group, ahead of their Rust swap. Co-Authored-By: Claude Opus 5.5 <[email protected]> Ci-Attestation: {"at":1795197835,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["a0a4d5826a3d5e211442fa9391480309811aa0b9"],"secs":61,"stamp":"48b9f61eef46614da75faf2bcccb18c1","tree":"89f106967766adc7a6c59063678dd44117fb372c","v":1,"via":"run"} Ci-Attestation: {"at":1795197835,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["a0a4d5826a3d5e211442fa9391480309811aa0b9"],"secs":61,"stamp":"bbd8507a1331e57f12d9dfad922175ed","tree":"89f106967766adc7a6c59063678dd44117fb372c","v":1,"via":"run"} Ci-Attestation: {"at":1795197835,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["a0a4d5826a3d5e211442fa9391480309811aa0b9"],"secs":61,"stamp":"6555f05620fcfc92236b43c1a9d64b52","tree":"89f106967766adc7a6c59063678dd44117fb372c","v":1,"via":"run"} Ci-Attestation: {"at":1795197835,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["a0a4d5826a3d5e211442fa9391480309811aa0b9"],"secs":61,"stamp":"ad669a8d1e2a7c81d219d66a2a945d03","tree":"89f106967766adc7a6c59063678dd44117fb372c","v":1,"via":"run"} Ci-Attestation: {"at":1795197773,"gate":"general/all/client-lint","host":"linux-x86_64","key":"19b842134edba609f92be2ea9c30e86356d888cc10ea6eab84996d02042c3bdd","lane":"client-lint","parents":["a0a4d5826a3d5e211442fa9391480309811aa0b9"],"secs":57,"stamp":"51d8d1671c6f09f55d1078f677477472","tree":"89f106967766adc7a6c59063678dd44117fb372c","v":1,"via":"run"} Ci-Attestation: {"at":1795197835,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["a0a4d5826a3d5e211442fa9391480309811aa0b9"],"secs":61,"stamp":"ff1c1342500139a7c1c647fd56eccd50","tree":"89f106967766adc7a6c59063678dd44117fb372c","v":1,"via":"run"} Ci-Attestation: {"at":1795197773,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"19b842134edba609f92be2ea9c30e86356d888cc10ea6eab84996d02042c3bdd","lane":"client-lint","parents":["a0a4d5826a3d5e211442fa9391480309811aa0b9"],"secs":57,"stamp":"a49c971ee88ad96417ba8b26768b30ee","tree":"89f106967766adc7a6c59063678dd44117fb372c","v":1,"via":"run"} Ci-Attestation: {"at":1795197773,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"19b842134edba609f92be2ea9c30e86356d888cc10ea6eab84996d02042c3bdd","lane":"client-lint","parents":["a0a4d5826a3d5e211442fa9391480309811aa0b9"],"secs":57,"stamp":"96b2852450bac251b6f2b41b3a5a8572","tree":"89f106967766adc7a6c59063678dd44117fb372c","v":1,"via":"run"} Ci-Attestation: {"at":1795197773,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"19b842134edba609f92be2ea9c30e86356d888cc10ea6eab84996d02042c3bdd","lane":"client-lint","parents":["a0a4d5826a3d5e211442fa9391480309811aa0b9"],"secs":57,"stamp":"dd897728988a503416ef4f8746e2bf0a","tree":"89f106967766adc7a6c59063678dd44117fb372c","v":1,"via":"run"} Ci-Attestation: {"at":1795197773,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"19b842134edba609f92be2ea9c30e86356d888cc10ea6eab84996d02042c3bdd","lane":"client-lint","parents":["a0a4d5826a3d5e211442fa9391480309811aa0b9"],"secs":57,"stamp":"8f63605c03166b683ee02e81daa1d57c","tree":"89f106967766adc7a6c59063678dd44117fb372c","v":1,"via":"run"} Ci-Attestation: {"at":1795197773,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"19b842134edba609f92be2ea9c30e86356d888cc10ea6eab84996d02042c3bdd","lane":"client-lint","parents":["a0a4d5826a3d5e211442fa9391480309811aa0b9"],"secs":57,"stamp":"5db85d390be073c187375d9cfb66ade9","tree":"89f106967766adc7a6c59063678dd44117fb372c","v":1,"via":"run"} Ci-Attestation: {"at":1795197773,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"19b842134edba609f92be2ea9c30e86356d888cc10ea6eab84996d02042c3bdd","lane":"client-lint","parents":["a0a4d5826a3d5e211442fa9391480309811aa0b9"],"secs":57,"stamp":"0ae57709baf1913e09b499eed0a8f055","tree":"89f106967766adc7a6c59063678dd44117fb372c","v":1,"via":"run"} Ci-Attestation: {"at":1795197773,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"19b842134edba609f92be2ea9c30e86356d888cc10ea6eab84996d02042c3bdd","lane":"client-lint","parents":["a0a4d5826a3d5e211442fa9391480309811aa0b9"],"secs":57,"stamp":"6a61024b825f28ceb94373920617464e","tree":"89f106967766adc7a6c59063678dd44117fb372c","v":1,"via":"run"} Ci-Attestation: {"at":1795197773,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"19b842134edba609f92be2ea9c30e86356d888cc10ea6eab84996d02042c3bdd","lane":"client-lint","parents":["a0a4d5826a3d5e211442fa9391480309811aa0b9"],"secs":57,"stamp":"6c702bdaef34640f934d1c1bd0058fd4","tree":"89f106967766adc7a6c59063678dd44117fb372c","v":1,"via":"run"} Ci-Attestation: {"at":1795197773,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"19b842134edba609f92be2ea9c30e86356d888cc10ea6eab84996d02042c3bdd","lane":"client-lint","parents":["a0a4d5826a3d5e211442fa9391480309811aa0b9"],"secs":57,"stamp":"8db941d9d6e12edf8af84336889f0eb1","tree":"89f106967766adc7a6c59063678dd44117fb372c","v":1,"via":"run"} Ci-Attestation: {"at":1795197773,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"19b842134edba609f92be2ea9c30e86356d888cc10ea6eab84996d02042c3bdd","lane":"client-lint","parents":["a0a4d5826a3d5e211442fa9391480309811aa0b9"],"secs":57,"stamp":"923ccb8854dda2632b779cade83d0752","tree":"89f106967766adc7a6c59063678dd44117fb372c","v":1,"via":"run"} Ci-Attestation: {"at":1795197773,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"19b842134edba609f92be2ea9c30e86356d888cc10ea6eab84996d02042c3bdd","lane":"client-lint","parents":["a0a4d5826a3d5e211442fa9391480309811aa0b9"],"secs":57,"stamp":"d82ffbfb6235d8e7ae26780fc2f90aa9","tree":"89f106967766adc7a6c59063678dd44117fb372c","v":1,"via":"run"} Ci-Attestation: {"at":1795197773,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"19b842134edba609f92be2ea9c30e86356d888cc10ea6eab84996d02042c3bdd","lane":"client-lint","parents":["a0a4d5826a3d5e211442fa9391480309811aa0b9"],"secs":57,"stamp":"4ee0f31f14cfaf0185aa74850aed922a","tree":"89f106967766adc7a6c59063678dd44117fb372c","v":1,"via":"run"} Ci-Attestation: {"at":1795198044,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"8f78503ef04a08c0c138a5589574e05dc18202a4056391bd5e9b3f1c1eadc261","lane":"client-test-x86_64-unknown-linux-gnu","parents":["a0a4d5826a3d5e211442fa9391480309811aa0b9"],"secs":208,"stamp":"f8caec8d48ce4bf923580060def02a61","tree":"89f106967766adc7a6c59063678dd44117fb372c","v":1,"via":"run"} Client-Checks: {"checks":{"base":"151acad9add26cbfb30b6d39845090fd8c486fb7","coverage":"all-tracked-applicable-files","diff":["libobs/build/libobs.core-output+.h.c","libobs/obs-service-info-accessors.c.h","libobs/obs-service.c.h","rust/README.md","test/cmocka/build/test-graph.json","test/cmocka/test_service_info_accessors.c"],"head":"df9caf548a6cd81b201219659e0db61119420c7c","tools":{"orchestrator-python":"3.13.16 (main, Oct 14 2026, 01:04:01) [Clang 23.1.3 ]","schema-dependencies":"3.13.16 (main, Oct 14 2026, 01:04:01) [Clang 23.1.3 ]\n{'jsonschema': '4.26.0', 'json_source_map': '1.0.5'}","uv":"uv 0.13.5 (x86_64-unknown-linux-gnu)","xmllint":"xmllint: using libxml version 21504-GITv2.15.4\n compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 DTDValid HTML C14N Catalog XPath XPointer XInclude Iconv ICU ISO8859X Regexps Automata RelaxNG Schemas Schematron Modules Debug Zlib"},"tracked-digest":"789d391bb74749d1a3d628c5a210d8fa2fd432a49975228136870ccc5848a245","tree":"89f106967766adc7a6c59063678dd44117fb372c"}}
…3840) Windows Tier 2 links failed with undefined obs_service_get_info_table, obs_service_get_plugin_data, obs_service_set_plugin_data and obs_service_set_info: the shared Rust-static support archive reached them only through service-runtime-link-support.c's obs-service.c.h, which no longer defines them. Co-Authored-By: Claude Opus 5.5 <[email protected]> Ci-Attestation: {"at":1795199091,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["5b52279614585d02be8cebef58c38b09691bf956"],"secs":65,"stamp":"ae4c77dbc2745758dd414c86e8bd267d","tree":"b44f8a4dbfc10024b5d6aa71a1382c7e82faa1ad","v":1,"via":"run"} Ci-Attestation: {"at":1795199091,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["5b52279614585d02be8cebef58c38b09691bf956"],"secs":65,"stamp":"58d2644e3e38c613f4a11eb465aab5c5","tree":"b44f8a4dbfc10024b5d6aa71a1382c7e82faa1ad","v":1,"via":"run"} Ci-Attestation: {"at":1795199091,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["5b52279614585d02be8cebef58c38b09691bf956"],"secs":65,"stamp":"a4e5da0a6659c669665e70a6530992e8","tree":"b44f8a4dbfc10024b5d6aa71a1382c7e82faa1ad","v":1,"via":"run"} Ci-Attestation: {"at":1795199091,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["5b52279614585d02be8cebef58c38b09691bf956"],"secs":65,"stamp":"da62a40b8d836339df65dc6f1c1fdbaf","tree":"b44f8a4dbfc10024b5d6aa71a1382c7e82faa1ad","v":1,"via":"run"} Ci-Attestation: {"at":1795199025,"gate":"general/all/client-lint","host":"linux-x86_64","key":"e56021e6f824b981bbdfee988847caf98260aadbe62077a7f4d66f177657e325","lane":"client-lint","parents":["5b52279614585d02be8cebef58c38b09691bf956"],"secs":10,"stamp":"9051684956e48a04dda54e5dccf463b7","tree":"b44f8a4dbfc10024b5d6aa71a1382c7e82faa1ad","v":1,"via":"run"} Ci-Attestation: {"at":1795199091,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["5b52279614585d02be8cebef58c38b09691bf956"],"secs":65,"stamp":"478af7dbbc58d9ad020a2ccccfa3a412","tree":"b44f8a4dbfc10024b5d6aa71a1382c7e82faa1ad","v":1,"via":"run"} Ci-Attestation: {"at":1795199025,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"e56021e6f824b981bbdfee988847caf98260aadbe62077a7f4d66f177657e325","lane":"client-lint","parents":["5b52279614585d02be8cebef58c38b09691bf956"],"secs":10,"stamp":"2bdc94b3a37a76f39d67ba7f4eec159e","tree":"b44f8a4dbfc10024b5d6aa71a1382c7e82faa1ad","v":1,"via":"run"} Ci-Attestation: {"at":1795199025,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"e56021e6f824b981bbdfee988847caf98260aadbe62077a7f4d66f177657e325","lane":"client-lint","parents":["5b52279614585d02be8cebef58c38b09691bf956"],"secs":10,"stamp":"bb9477249ba29346a89119ac84c7c1c3","tree":"b44f8a4dbfc10024b5d6aa71a1382c7e82faa1ad","v":1,"via":"run"} Ci-Attestation: {"at":1795199025,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"e56021e6f824b981bbdfee988847caf98260aadbe62077a7f4d66f177657e325","lane":"client-lint","parents":["5b52279614585d02be8cebef58c38b09691bf956"],"secs":10,"stamp":"d346ae2ab04e6611b674a008feb1317e","tree":"b44f8a4dbfc10024b5d6aa71a1382c7e82faa1ad","v":1,"via":"run"} Ci-Attestation: {"at":1795199025,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"e56021e6f824b981bbdfee988847caf98260aadbe62077a7f4d66f177657e325","lane":"client-lint","parents":["5b52279614585d02be8cebef58c38b09691bf956"],"secs":10,"stamp":"18348769770ad00931a4b365d5977a02","tree":"b44f8a4dbfc10024b5d6aa71a1382c7e82faa1ad","v":1,"via":"run"} Ci-Attestation: {"at":1795199025,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"e56021e6f824b981bbdfee988847caf98260aadbe62077a7f4d66f177657e325","lane":"client-lint","parents":["5b52279614585d02be8cebef58c38b09691bf956"],"secs":10,"stamp":"f835a9e697979e6133e5d9cd930238dd","tree":"b44f8a4dbfc10024b5d6aa71a1382c7e82faa1ad","v":1,"via":"run"} Ci-Attestation: {"at":1795199025,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"e56021e6f824b981bbdfee988847caf98260aadbe62077a7f4d66f177657e325","lane":"client-lint","parents":["5b52279614585d02be8cebef58c38b09691bf956"],"secs":10,"stamp":"2d2eda12fc08587d35709fad0a354636","tree":"b44f8a4dbfc10024b5d6aa71a1382c7e82faa1ad","v":1,"via":"run"} Ci-Attestation: {"at":1795199025,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"e56021e6f824b981bbdfee988847caf98260aadbe62077a7f4d66f177657e325","lane":"client-lint","parents":["5b52279614585d02be8cebef58c38b09691bf956"],"secs":10,"stamp":"83945810b2bb631e4bd2791258faa234","tree":"b44f8a4dbfc10024b5d6aa71a1382c7e82faa1ad","v":1,"via":"run"} Ci-Attestation: {"at":1795199025,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"e56021e6f824b981bbdfee988847caf98260aadbe62077a7f4d66f177657e325","lane":"client-lint","parents":["5b52279614585d02be8cebef58c38b09691bf956"],"secs":10,"stamp":"03a1eec63068d85a1a8d1ef8e7049138","tree":"b44f8a4dbfc10024b5d6aa71a1382c7e82faa1ad","v":1,"via":"run"} Ci-Attestation: {"at":1795199025,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"e56021e6f824b981bbdfee988847caf98260aadbe62077a7f4d66f177657e325","lane":"client-lint","parents":["5b52279614585d02be8cebef58c38b09691bf956"],"secs":10,"stamp":"4e44cf824fe46cb08b0cad34449bbaf6","tree":"b44f8a4dbfc10024b5d6aa71a1382c7e82faa1ad","v":1,"via":"run"} Ci-Attestation: {"at":1795199025,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"e56021e6f824b981bbdfee988847caf98260aadbe62077a7f4d66f177657e325","lane":"client-lint","parents":["5b52279614585d02be8cebef58c38b09691bf956"],"secs":10,"stamp":"a4bfe9d36c4db2d621b54c3fcc954c61","tree":"b44f8a4dbfc10024b5d6aa71a1382c7e82faa1ad","v":1,"via":"run"} Ci-Attestation: {"at":1795199025,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"e56021e6f824b981bbdfee988847caf98260aadbe62077a7f4d66f177657e325","lane":"client-lint","parents":["5b52279614585d02be8cebef58c38b09691bf956"],"secs":10,"stamp":"cce8e5dcbb1b8664f3533072e3a09a83","tree":"b44f8a4dbfc10024b5d6aa71a1382c7e82faa1ad","v":1,"via":"run"} Ci-Attestation: {"at":1795199025,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"e56021e6f824b981bbdfee988847caf98260aadbe62077a7f4d66f177657e325","lane":"client-lint","parents":["5b52279614585d02be8cebef58c38b09691bf956"],"secs":10,"stamp":"4c861b1f2016387cf828b08051f1ca58","tree":"b44f8a4dbfc10024b5d6aa71a1382c7e82faa1ad","v":1,"via":"run"} Ci-Attestation: {"at":1795199235,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"28f7dc65d5c2e5787b333cab9ce783c71a69ec8a637ea2def87b7b0530139bcb","lane":"client-test-x86_64-unknown-linux-gnu","parents":["5b52279614585d02be8cebef58c38b09691bf956"],"secs":143,"stamp":"9683812623f7e4e30f6539aec409eeee","tree":"b44f8a4dbfc10024b5d6aa71a1382c7e82faa1ad","v":1,"via":"run"} Client-Checks: {"checks":{"base":"151acad9add26cbfb30b6d39845090fd8c486fb7","coverage":"all-tracked-applicable-files","diff":["libobs/build/libobs.core-output+.h.c","libobs/obs-service-info-accessors.c.h","libobs/obs-service.c.h","rust/README.md","test/cmocka/build/rust-static-support.json","test/cmocka/build/test-graph.json","test/cmocka/service-info-accessors-link-support.c","test/cmocka/test_service_info_accessors.c"],"head":"3eb6b6caa14df745165e855cf7f014f86098fc6b","tools":{"orchestrator-python":"3.13.16 (main, Oct 14 2026, 01:04:01) [Clang 23.1.3 ]","schema-dependencies":"3.13.16 (main, Oct 14 2026, 01:04:01) [Clang 23.1.3 ]\n{'jsonschema': '4.26.0', 'json_source_map': '1.0.5'}","uv":"uv 0.13.5 (x86_64-unknown-linux-gnu)","xmllint":"xmllint: using libxml version 21504-GITv2.15.4\n compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 DTDValid HTML C14N Catalog XPath XPointer XInclude Iconv ICU ISO8859X Regexps Automata RelaxNG Schemas Schematron Modules Debug Zlib"},"tracked-digest":"fdb401dacd893ab71c2815e7144e721c1cd10217f4238ea2d0d6b53632aff0cb","tree":"b44f8a4dbfc10024b5d6aa71a1382c7e82faa1ad"}}
|
Fixed the Windows Tier 2 link failure, rebased onto master (151acad). RED (PR CI, Tier 2 Link Check win-x64, job 136474383667): GREEN: 8f07a6c adds exit 0, no undefined symbols. |
Extract the four hidden service accessors
obs_service_set_info,obs_service_get_info_table,obs_service_set_plugin_dataandobs_service_get_plugin_dataverbatim fromlibobs/obs-service.c.hintolibobs/obs-service-info-accessors.c.h, in the same unity group (libobs.core-output+), ahead of their Rust swap. Same shape as the handler getters' prerequisite (#5013).test_service_info_accessorscompiles the real extracted C and characterizes:set_infocopies the whole table by value into the service and changes no other byte; a later change to the source table does not reach the service; a second set overwrites in place; an all-NULL table copies the same way.get_info_tablereturns the embedded table's address (not the caller's), stable across calls, and changes no byte.set_plugin_data/get_plugin_dataround-trip any pointer, NULL included, change onlycontext.data, never dereference it, and log nothing.An opt-in
OBS_SERVICE_INFO_ACCESSORS_RUSTmode lets the later Rust-static registration link this test unchanged.Refs #3840 (info-table and plugin-data slice). No Rust code here, so Rust Tier 1, the C-oracle differential and mutation check come with the swap PR. Tier 4 does not apply.
Evidence
RED (
a0a4d5826, test only): compiling the fixture from agit archiveexport of that commit fails because the extracted file does not exist yet:GREEN (
5b5227961): the same command on that commit's export exits 0.obs-service.c.hloses (diffof removed vs added lines: no output).SOLDR_PORCELAIN=0 ./lint:lane lint: ok(63 s), including the build-group and test-graph checks.OBS_CTEST_JOBS=10 uv run rust/tools/linux-validate/run.py --repeat 1 --tests 'test_service_(info_accessors|getters|lifecycle|handler_getters)'): 1061/1061 passed against the C reference (OFF) and the hybrid libobs (ON), exported symbols identical; the repeat of the five service tests passed 5/5 in each mode.🤖 Generated with Claude Code