feat(prx): declare exports for seven more confirmed system libraries #7840
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7840"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by akkadbakkad89 on 2026-10-19T10:15:25Z.
What
Follow-up to #7835, same shape: declares the exported function names for seven more of the confirmed PS5 system libraries inventoried by
bec9cf2e5, replacing eachAPS5_DUMMY_FUNplaceholder withNotImplemented_nid_no_patchstubs:libSceCompanionHttpd— 17 exports (sceCompanionHttpd*: second-screen HTTP daemon lifecycle, event, callback registration)libSceOpusSilkEnc— 14 exports (sceOpusSilkEnc*: create/destroy, ctl, encode variants)libSceOpusCeltEnc— 11 exports (sceOpusCeltEnc*: create/destroy, ctl, encode variants)libSceShellUIUtil— 6 exports (sceShellUIUtil*: shell UI task launch/uri helpers)libSceMoveTracker— 18 exports (sceMoveTracker*: controller tracking init/term, calibration, capture, state)libSceCustomMusicCore— 18 exports (sceCustomMusicCore*: BGM open/close/output, system volume, events)libSceHttpCache— 22 exports (sceHttpCache*: init/term, request lifecycle, retrieve/revalidate, system hooks)106 exports total. All seven lists are now aligned to the per-module PS5 3.20 export inventory (the same source
1b5004d77cites), not just prefix-matched from aerolib: review surfaced that 16 aerolib names (sceHttpCache*,sceOpus*Enc,sceShellUIUtil*service/debug variants) are absent from the 3.20 export tables, so they were dropped rather than declared on a prefix guess. Every prototype is declared()since no signature is verified for these libraries — the "unknown prototype" shape1b5004d77settled on, and each library now has adocs/dev/debt/<library>.mdentry per the documentation rule.Tested
Windows 11 worktree; configured and built under WSL gcc (Release).
.prx;nm -Dcounts match exactly (17/14/11/6/18/18/22 declaredsce*symbols each).core/libs/prx/directory (set-intersection against allAPS5_VABIexports onmain).python3 tools/check_conventions.py --base origin/main: clean;git diff --check: clean;tools/pr_overlap.py: no overlap.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR).prxbuilds verified, no GPU path exercised)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T10:16:16Z.
Progress report (
b106f6f→7ccf4da)📉 System libraries: 79.9% (-1.77%, +106 declared functions)
🆕 106 declared as stubs
sceCompanionHttpdAddHeadersceCompanionHttpdGet2ndScreenStatussceCompanionHttpdGetEventsceCompanionHttpdGetUserIdsceCompanionHttpdInitializesceCompanionHttpdInitialize2sceCompanionHttpdOptParamInitializesceCompanionHttpdRegisterRequestBodyReceptionCallbacksceCompanionHttpdRegisterRequestCallbacksceCompanionHttpdRegisterRequestCallback2sceCompanionHttpdSetBodysceCompanionHttpdSetStatussceCompanionHttpdStartsceCompanionHttpdStopsceCompanionHttpdTerminatesceCompanionHttpdUnregisterRequestBodyReceptionCallbacksceCompanionHttpdUnregisterRequestCallbacksceCustomMusicCoreBgmClosesceCustomMusicCoreBgmOpensceCustomMusicCoreBgmOpen2sceCustomMusicCoreBgmOutputsceCustomMusicCoreBgmSetAudioVolumesceCustomMusicCoreBgmStartsceCustomMusicCoreBgmStopsceCustomMusicCoreGetBgmAuthorityStatussceCustomMusicCoreGetHdcpStatussceCustomMusicCoreGetSystemAudioVolumesceCustomMusicCorePostEventsceCustomMusicCoreSendEventsceCustomMusicCoreSendMulticastEventsceCustomMusicCoreSendSpMessagesceCustomMusicCoreSetSystemAudioVolumesceCustomMusicCoreStartOperationsceCustomMusicCoreStartOperation2sceCustomMusicCoreStopOperationsceHttpCacheClearsceHttpCacheClearAllsceHttpCacheCompleteRequestsceHttpCacheCreateRequestsceHttpCacheCreateRequestWithTagsceHttpCacheDeleteRequestsceHttpCacheInitsceHttpCacheReadDatasceHttpCacheRetrievesceHttpCacheRetrieveWithMemoryPoolsceHttpCacheRevalidatesceHttpCacheRevalidateWithMemoryPoolsceHttpCacheSetCacheSharingsceHttpCacheSetDatasceHttpCacheSetQuotasceHttpCacheSetResponseHeadersceHttpCacheSystemClearAllsceHttpCacheSystemInitsceHttpCacheSystemSendStatisticssceHttpCacheSystemShutdownsceHttpCacheSystemTermsceHttpCacheTermsceMoveTrackerCalibrateResetsceMoveTrackerCalibrateYawsceMoveTrackerCameraUpdatesceMoveTrackerCaptureInitsceMoveTrackerCaptureTermsceMoveTrackerControllersUpdatesceMoveTrackerGetStatesceMoveTrackerGetVersionsceMoveTrackerGetWorkingMemorySizesceMoveTrackerInitsceMoveTrackerPlayGetImagessceMoveTrackerPlayGetStatessceMoveTrackerPlayStartsceMoveTrackerPlayStepsceMoveTrackerRecordSavesceMoveTrackerRecordStartsceMoveTrackerRecordStopsceMoveTrackerTermsceOpusCeltEncCreatesceOpusCeltEncCreateExsceOpusCeltEncCtlsceOpusCeltEncDestroysceOpusCeltEncEncodesceOpusCeltEncEncodeFloatsceOpusCeltEncEncodeFloatWithPrioritysceOpusCeltEncEncodeWithPrioritysceOpusCeltEncGetSizesceOpusCeltEncInitializesceOpusCeltEncTerminatesceOpusSilkEncCancelsceOpusSilkEncCreatesceOpusSilkEncCreateExsceOpusSilkEncCtlsceOpusSilkEncDestroysceOpusSilkEncEncodesceOpusSilkEncEncodeFloatsceOpusSilkEncEncodeFloatWithPrioritysceOpusSilkEncEncodeFloatWithPriorityAndTimeoutsceOpusSilkEncEncodeWithPrioritysceOpusSilkEncEncodeWithPriorityAndTimeoutsceOpusSilkEncGetSizesceOpusSilkEncInitializesceOpusSilkEncTerminateImported from boykopovar/AnyPS5. Originally posted by fogydes on 2026-10-19T12:08:06Z.
Review: COMMENTED
The export coverage and clean
.prxlinking are great additions, and followingNotImplemented_nid_no_patch(__func__)matches the project's non-silent stub requirements.One documentation gap to address before merge:
Commit
1b5004d77(which established the pattern of declaring unverified prototypes without parameters) paired each library change with a technical debt entry underdocs/dev/debt/<library>.md(e.g.libSceAppInstUtil.md,libSceVrTracker.md).Per
CONTRIBUTING.md#documentation, unknown signatures and throwing stubs must be documented indocs/dev/debt/<name>.md. Adding entries for the seven libraries:docs/dev/debt/libSceCompanionHttpd.mddocs/dev/debt/libSceCustomMusicCore.mddocs/dev/debt/libSceHttpCache.mddocs/dev/debt/libSceMoveTracker.mddocs/dev/debt/libSceOpusCeltEnc.mddocs/dev/debt/libSceOpusSilkEnc.mddocs/dev/debt/libSceShellUIUtil.mdEach can follow the standard
1b5004d77shape:Adding these debt files will bring the PR into full alignment with conventions.
AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by akkadbakkad89 on 2026-10-19T12:27:45Z.
Done in
7ccf4da48, plus a second pass that your1b5004d77pointer enabled.While writing the debt entries I found that commit cites a per-module source — the PS5 3.20 export inventory — which is better than the flat aerolib table I had used. All seven libraries exist there, so I aligned every declaration to the inventory instead of the prefix heuristic:
libSceHttpCache: 29 -> 22 (dropped 7 aerolib names absent from the 3.20 table)libSceOpusSilkEnc: 16 -> 14,libSceOpusCeltEnc: 12 -> 11 (dropped*GetAjmContextand a timeout variant not exported in 3.20)libSceShellUIUtil: 12 -> 6 (dropped theService*/debug names not in the inventory)libSceCompanionHttpd,libSceMoveTracker,libSceCustomMusicCore: exact match already106 exports now, each dump-verified. The seven
docs/dev/debt/<library>.mdfiles follow the1b5004d77shape and cite the inventory entry per library.The removed names still exist in aerolib — presumably from other firmware revisions or a sibling module — so if a title's import audit ever names one of them for this module specifically, that's a quick re-add with a verified attribution.
Verified: all four touched libraries relink,
nm -Dcounts match the inventory exactly (17/14/11/6/18/18/22),check_conventionsclean.Imported from boykopovar/AnyPS5. Originally posted by savvaniss on 2026-10-19T22:08:50Z.
Heads-up on an overlap: #8112 implements eight of the
libSceCompanionHttpdexports this PR declares (initialize, callback registration, start and stop, events, with no companion device ever connecting) and declares the other nine the same way you do. Whichever lands second only needs to drop itslibSceCompanionHttpdpart; the six other libraries here are untouched by it.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T22:16:19Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libSceCompanionHttpd/Export.cppL8docs/dev/debt/libSceCompanionHttpd.mdsceCompanionHttpdAddHeadersceCompanionHttpdGet2ndScreenStatussceCompanionHttpdGetEventsceCompanionHttpdGetUserIdsceCompanionHttpdInitializesceCompanionHttpdInitialize2sceCompanionHttpdOptParamInitializesceCompanionHttpdRegisterRequestBodyReceptionCallbacksceCompanionHttpdRegisterRequestCallbacksceCompanionHttpdRegisterRequestCallback2sceCompanionHttpdSetBodysceCompanionHttpdSetStatussceCompanionHttpdStartsceCompanionHttpdStopsceCompanionHttpdTerminatesceCompanionHttpdUnregisterRequestBodyReceptionCallbacksceCompanionHttpdUnregisterRequestCallbackdocs/dev/debt/libSceCompanionHttpd.mdImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-20T02:36:42Z.
Checked the 106 declarations against the pattern on main (
78fc2c175,1b5004d77): every stub throws viaNotImplemented_nid_no_patch, prototypes are(), each library has its "Unknown function info" debt entry, and no name overlaps another open PR; merged.