Skip to content

feat(libSceNpWebApi): register internal service push event callbacks - #16660

Merged
oneandonlydean merged 2 commits into
boykopovar:mainfrom
MarrasFederico:feat/npwebapi-int-service-push-callbacks
Nov 9, 2026
Merged

oneandonlydean merged 2 commits into
boykopovar:mainfrom
MarrasFederico:feat/npwebapi-int-service-push-callbacks

Conversation

@MarrasFederico

Copy link
Copy Markdown
Contributor

Supersedes #16112, which GitHub closed when the head fork was deleted. The commits are unchanged; earlier review comments and Windows checks are on #16112.

What

sceNpWebApiIntRegisterServicePushEventCallback and sceNpWebApiIntRegisterServicePushEventCallbackA were parameterless placeholders that threw. In shadPS4 they refuse a null callback with INVALID_ARGUMENT on every SDK version, then go through the same registration as sceNpWebApiRegisterServicePushEventCallback.

The public export's body after its SDK-gated null check now lives in a helper that all three call. The behaviour of the public export is unchanged.

  • No service push event filter can be created here, so from SDK 2.50 both return SERVICE_PUSH_EVENT_FILTER_NOT_FOUND; below it they return a callback id, as the public export does.
  • Registered callbacks are never called. The two rows leave the unknown-signature inventory.

Not measured on a console.

Tested

Ubuntu 26.04.1, kernel 7.0.0, GCC 15.2.0, Release, BUILD_TESTING=ON, on main 6e6dae4e8b. Windows and macOS were not compiled here. No title was run.

  • guest_np_web_api passes. New cases for both exports: a null callback, an unknown user context and a push (not service) filter on the current SDK; before SDK 1.00, a null callback refused before the user context lookup, and successful registration and unregistration.
  • Making their null check SDK-gated like the public export fails at the int service callback function is checked before the user context before SDK 1.00; restoring it passes.
  • check_conventions.py --base upstream/main passes.
  • pr_overlap.py listed draft #13486 for these names, but its current diff (three relinker files) does not touch them. #14212 only respaces the debt file.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 14212 docs/dev/debt/libSceNpWebApi.md

@JJenkx

JJenkx commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Windows check of head 6a10bf28c1, merged onto main c32f751139 (493decac69, clean merge).

Setup: Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release. The hosted Windows check does not run these tests on pull requests.

  • guest_np_web_api passes in 3 of 3 runs, none skipped.

AI-assisted: yes.

@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Progress report (47aba8e → 2e75c4f)

📈 System libraries: 35.06% (+0.01%, +2 implemented functions)

✅ 2 implemented
Library Name
libSceNpWebApi sceNpWebApiIntRegisterServicePushEventCallback
libSceNpWebApi sceNpWebApiIntRegisterServicePushEventCallbackA

Changed libraries (implemented exports)

Library Before After Change
libSceNpWebApi 41/94 (43.62%) 43/94 (45.74%) +2.13%

@oneandonlydean oneandonlydean self-assigned this Nov 9, 2026
@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Nov 9, 2026
…ervice-push-callbacks

# Conflicts:
#	docs/dev/debt/libSceNpWebApi.md
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 9, 2026
@oneandonlydean
oneandonlydean merged commit b673b14 into boykopovar:main Nov 9, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants