Skip to content

feat(libSceNpCppWebApi): cover the UserProfile models and remaining Common instantiations - #9015

Merged
oneandonlydean merged 3 commits into
boykopovar:mainfrom
akkadbakkad89:feat/np-webapi-up-generics
Oct 26, 2026
Merged

oneandonlydean merged 3 commits into
boykopovar:mainfrom
akkadbakkad89:feat/np-webapi-up-generics

Conversation

@akkadbakkad89

@akkadbakkad89 akkadbakkad89 commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

What

Second slice of the libSceNpCppWebApi imports a title dump (PPSA20397) ships without the module for: 87 further exports the registry records as used, plus the four previously-throwing ContainerApi exports in scope (ParameterToGetContainer::{initialize,terminate,dtor} and getContainer).

All names resolve through aerolib, so each exported symbol recomputes to the NID the title imports. The classes are:

  • Common instantiations for UserProfile and CommunicationRestrictionStatus types — IntrusivePtr copy/deref/assign/destroy, Transaction/TransactionBase lifecycle and Vector/Iterator/ConstIterator members — using the layouts and helpers established in the file
  • UserProfile::V1 models — BasicProfile, BasicPresence, PersonalDetail and Get*Response accessors, plus ParameterToGet{PublicProfiles,Friends,BlockingUsers} bookkeeping and the BasicProfileApi::getPublicProfiles verb
  • InGameCatalog::V5::ContainerApi — ParameterToGetContainer lifecycle and getContainer

Offline semantics follow the file's documented model: request entry points and transaction start/getResponse/sendData/readData fail with SCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN; parameter bookkeeping, constructors and destructors succeed without keeping state; response accessors, *IsSet queries, Vector::begin/end, iterator dereference/compare and transaction abort/getId/operator= throw, because a failed request produces no response object and these model layouts are unverified. Everything is generic — no title IDs, paths or trace-specific inputs are special-cased.

Overlap: the overlap report flags #8264, #8561 and #8843 because the same two files receive additions, and #8959 because this branch is stacked on it. The export sets are disjoint at the NID level — these 87 are the registry imports minus everything #8959 and #8561 cover, and none of the open PRs' patches mention any of these symbols.

Tested

  • g++ -fsyntax-only on the updated Export.cpp (GCC, WSL)
  • guest_np_cpp_web_api_string harness compiled and run against the file: all sub-tests pass
  • tools/check_conventions.py --base origin/main: pass
  • tools/pr_overlap.py --branch feat/np-webapi-up-generics: textual file-tail collisions only; no shared exports
  • Title coverage verified by registry audit (tools/import_audit.py); the imports now resolve instead of failing the loader. The title itself still stops at the unrelated AGC stencil replay-safety gate before reaching these flows

Checklist

@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Progress report (b27cc84 → 7a95148)

📈 System libraries: 50.64% (+0.04%, +50 implemented, +37 declared functions)

✅ 50 implemented
Library Name
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V110FriendsApi21ParameterToGetFriends8setlimitEi
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V110FriendsApi21ParameterToGetFriends9setoffsetEi
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V112BasicProfile11setOnlineIdERK13SceNpOnlineId
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V112BasicProfile23setIsOfficiallyVerifiedERKb
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V112BasicProfileC1EPNS1_6Common10LibContextE
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V112BasicProfileD1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V113BasicPresence12setAccountIdERKm
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V113BasicPresence12setInContextERKb
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V113BasicPresence15setOnlineStatusERKNS3_12OnlineStatusE
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V113BasicPresenceC1EPNS1_6Common10LibContextE
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V113BasicPresenceD1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V115BasicProfileApi17getPublicProfilesEiRKNS4_28ParameterToGetPublicProfilesERNS1_6Common11TransactionINS8_12IntrusivePtrINS3_25GetPublicProfilesResponseEEENSA_INS8_18ResponseHeaderBaseEEEEE
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V115BasicProfileApi28ParameterToGetPublicProfiles10initializeEPNS1_6Common10LibContextEPKc
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V115BasicProfileApi28ParameterToGetPublicProfiles9terminateEv
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V115BasicProfileApi28ParameterToGetPublicProfilesC1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V115BasicProfileApi28ParameterToGetPublicProfilesD1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V19BlocksApi27ParameterToGetBlockingUsers8setlimitEi
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V19BlocksApi27ParameterToGetBlockingUsers9setoffsetEi
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common11TransactionINS2_12IntrusivePtrINS1_11UserProfile2V125GetPublicProfilesResponseEEENS4_INS2_18ResponseHeaderBaseEEEEC1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common11TransactionINS2_12IntrusivePtrINS1_11UserProfile2V125GetPublicProfilesResponseEEENS4_INS2_18ResponseHeaderBaseEEEED1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common11TransactionINS2_12IntrusivePtrINS1_30CommunicationRestrictionStatus2V338CommunicationRestrictionStatusResponseEEENS4_INS2_18ResponseHeaderBaseEEEEC1ERKSB_
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common12IntrusivePtrINS1_11UserProfile2V112BasicProfileEEC1ERS7_
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common12IntrusivePtrINS1_11UserProfile2V113BasicPresenceEEC1ERS7_
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common12IntrusivePtrINS1_11UserProfile2V118GetFriendsResponseEEC1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common12IntrusivePtrINS1_11UserProfile2V124GetBlockingUsersResponseEEC1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common12IntrusivePtrINS1_11UserProfile2V125GetBasicPresencesResponseEEC1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common12IntrusivePtrINS1_11UserProfile2V125GetPublicProfilesResponseEEC1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common12IntrusivePtrINS1_30CommunicationRestrictionStatus2V338CommunicationRestrictionStatusResponseEEC1ERKS7_
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common12IntrusivePtrINS1_30CommunicationRestrictionStatus2V338CommunicationRestrictionStatusResponseEEC1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common12IntrusivePtrINS2_6VectorINS3_INS1_11UserProfile2V112BasicProfileEEEEEEC1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common12IntrusivePtrINS2_6VectorINS3_INS1_11UserProfile2V113BasicPresenceEEEEEEC1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common13ConstIteratorINS2_12IntrusivePtrINS1_11UserProfile2V112BasicProfileEEEED2Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common15TransactionBaseINS2_12IntrusivePtrINS1_11UserProfile2V125GetPublicProfilesResponseEEENS4_INS2_18ResponseHeaderBaseEEEE5startEPNS2_10LibContextE
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common15TransactionBaseINS2_12IntrusivePtrINS1_11UserProfile2V125GetPublicProfilesResponseEEENS4_INS2_18ResponseHeaderBaseEEEE6finishEv
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi6Common11TransactionINS2_12IntrusivePtrINS1_11UserProfile2V118GetFriendsResponseEEENS4_INS2_18ResponseHeaderBaseEEEE11getResponseERS8_
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi6Common11TransactionINS2_12IntrusivePtrINS1_11UserProfile2V118GetFriendsResponseEEENS4_INS2_18ResponseHeaderBaseEEEE11hasResponseEv
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi6Common11TransactionINS2_12IntrusivePtrINS1_11UserProfile2V124GetBlockingUsersResponseEEENS4_INS2_18ResponseHeaderBaseEEEE11getResponseERS8_
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi6Common11TransactionINS2_12IntrusivePtrINS1_11UserProfile2V124GetBlockingUsersResponseEEENS4_INS2_18ResponseHeaderBaseEEEE11hasResponseEv
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi6Common11TransactionINS2_12IntrusivePtrINS1_11UserProfile2V125GetBasicPresencesResponseEEENS4_INS2_18ResponseHeaderBaseEEEE11getResponseERS8_
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi6Common11TransactionINS2_12IntrusivePtrINS1_11UserProfile2V125GetBasicPresencesResponseEEENS4_INS2_18ResponseHeaderBaseEEEE11hasResponseEv
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi6Common11TransactionINS2_12IntrusivePtrINS1_11UserProfile2V125GetPublicProfilesResponseEEENS4_INS2_18ResponseHeaderBaseEEEE11getResponseERS8_
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi6Common11TransactionINS2_12IntrusivePtrINS1_11UserProfile2V125GetPublicProfilesResponseEEENS4_INS2_18ResponseHeaderBaseEEEE11hasResponseEv
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi6Common11TransactionINS2_12IntrusivePtrINS1_30CommunicationRestrictionStatus2V338CommunicationRestrictionStatusResponseEEENS4_INS2_18ResponseHeaderBaseEEEE11getResponseERS8_
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi6Common11TransactionINS2_12IntrusivePtrINS1_30CommunicationRestrictionStatus2V338CommunicationRestrictionStatusResponseEEENS4_INS2_18ResponseHeaderBaseEEEE11hasResponseEv
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi6Common12IntrusivePtrINS1_11UserProfile2V112BasicProfileEEptEv
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi6Common12IntrusivePtrINS1_11UserProfile2V114PersonalDetailEEptEv
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi6Common12IntrusivePtrINS1_11UserProfile2V125GetPublicProfilesResponseEEptEv
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi6Common12IntrusivePtrINS2_6VectorINS3_INS1_11UserProfile2V112BasicProfileEEEEEE3getEv
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi6Common12IntrusivePtrINS2_6VectorINS3_INS1_11UserProfile2V112BasicProfileEEEEEEptEv
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi6Common12IntrusivePtrINS2_6VectorINS3_INS1_11UserProfile2V113BasicPresenceEEEEEE3getEv
⚪ 34 behaviourally empty (constant return or throw)
Library Name
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V110FriendsApi21ParameterToGetFriends8setlimitEi
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V110FriendsApi21ParameterToGetFriends9setoffsetEi
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V112BasicProfile11setOnlineIdERK13SceNpOnlineId
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V112BasicProfile23setIsOfficiallyVerifiedERKb
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V112BasicProfileC1EPNS1_6Common10LibContextE
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V112BasicProfileD1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V113BasicPresence12setAccountIdERKm
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V113BasicPresence12setInContextERKb
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V113BasicPresence15setOnlineStatusERKNS3_12OnlineStatusE
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V113BasicPresenceC1EPNS1_6Common10LibContextE
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V113BasicPresenceD1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V115BasicProfileApi17getPublicProfilesEiRKNS4_28ParameterToGetPublicProfilesERNS1_6Common11TransactionINS8_12IntrusivePtrINS3_25GetPublicProfilesResponseEEENSA_INS8_18ResponseHeaderBaseEEEEE
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V115BasicProfileApi28ParameterToGetPublicProfiles10initializeEPNS1_6Common10LibContextEPKc
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V115BasicProfileApi28ParameterToGetPublicProfiles9terminateEv
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V115BasicProfileApi28ParameterToGetPublicProfilesC1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V115BasicProfileApi28ParameterToGetPublicProfilesD1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V19BlocksApi27ParameterToGetBlockingUsers8setlimitEi
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V19BlocksApi27ParameterToGetBlockingUsers9setoffsetEi
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common11TransactionINS2_12IntrusivePtrINS1_11UserProfile2V125GetPublicProfilesResponseEEENS4_INS2_18ResponseHeaderBaseEEEEC1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common11TransactionINS2_12IntrusivePtrINS1_11UserProfile2V125GetPublicProfilesResponseEEENS4_INS2_18ResponseHeaderBaseEEEED1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common11TransactionINS2_12IntrusivePtrINS1_30CommunicationRestrictionStatus2V338CommunicationRestrictionStatusResponseEEENS4_INS2_18ResponseHeaderBaseEEEEC1ERKSB_
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common13ConstIteratorINS2_12IntrusivePtrINS1_11UserProfile2V112BasicProfileEEEED2Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common15TransactionBaseINS2_12IntrusivePtrINS1_11UserProfile2V125GetPublicProfilesResponseEEENS4_INS2_18ResponseHeaderBaseEEEE5startEPNS2_10LibContextE
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common15TransactionBaseINS2_12IntrusivePtrINS1_11UserProfile2V125GetPublicProfilesResponseEEENS4_INS2_18ResponseHeaderBaseEEEE6finishEv
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi6Common11TransactionINS2_12IntrusivePtrINS1_11UserProfile2V118GetFriendsResponseEEENS4_INS2_18ResponseHeaderBaseEEEE11getResponseERS8_
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi6Common11TransactionINS2_12IntrusivePtrINS1_11UserProfile2V118GetFriendsResponseEEENS4_INS2_18ResponseHeaderBaseEEEE11hasResponseEv
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi6Common11TransactionINS2_12IntrusivePtrINS1_11UserProfile2V124GetBlockingUsersResponseEEENS4_INS2_18ResponseHeaderBaseEEEE11getResponseERS8_
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi6Common11TransactionINS2_12IntrusivePtrINS1_11UserProfile2V124GetBlockingUsersResponseEEENS4_INS2_18ResponseHeaderBaseEEEE11hasResponseEv
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi6Common11TransactionINS2_12IntrusivePtrINS1_11UserProfile2V125GetBasicPresencesResponseEEENS4_INS2_18ResponseHeaderBaseEEEE11getResponseERS8_
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi6Common11TransactionINS2_12IntrusivePtrINS1_11UserProfile2V125GetBasicPresencesResponseEEENS4_INS2_18ResponseHeaderBaseEEEE11hasResponseEv
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi6Common11TransactionINS2_12IntrusivePtrINS1_11UserProfile2V125GetPublicProfilesResponseEEENS4_INS2_18ResponseHeaderBaseEEEE11getResponseERS8_
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi6Common11TransactionINS2_12IntrusivePtrINS1_11UserProfile2V125GetPublicProfilesResponseEEENS4_INS2_18ResponseHeaderBaseEEEE11hasResponseEv
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi6Common11TransactionINS2_12IntrusivePtrINS1_30CommunicationRestrictionStatus2V338CommunicationRestrictionStatusResponseEEENS4_INS2_18ResponseHeaderBaseEEEE11getResponseERS8_
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi6Common11TransactionINS2_12IntrusivePtrINS1_30CommunicationRestrictionStatus2V338CommunicationRestrictionStatusResponseEEENS4_INS2_18ResponseHeaderBaseEEEE11hasResponseEv
🆕 37 declared as stubs
Library Name
libSceNpCppWebApi _ZN3sce2Np9CppWebApi11UserProfile2V125GetPublicProfilesResponse11getProfilesEv
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common12IntrusivePtrINS1_11UserProfile2V112BasicProfileEED1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common12IntrusivePtrINS1_11UserProfile2V113BasicPresenceEED1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common12IntrusivePtrINS1_11UserProfile2V114PersonalDetailEED1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common12IntrusivePtrINS1_11UserProfile2V118GetFriendsResponseEED1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common12IntrusivePtrINS1_11UserProfile2V124GetBlockingUsersResponseEED1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common12IntrusivePtrINS1_11UserProfile2V125GetBasicPresencesResponseEED1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common12IntrusivePtrINS1_11UserProfile2V125GetPublicProfilesResponseEED1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common12IntrusivePtrINS1_30CommunicationRestrictionStatus2V338CommunicationRestrictionStatusResponseEED1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common12IntrusivePtrINS1_30CommunicationRestrictionStatus2V338CommunicationRestrictionStatusResponseEEaSERKS7_
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common12IntrusivePtrINS2_6VectorINS3_INS1_11UserProfile2V112BasicProfileEEEEEED1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common12IntrusivePtrINS2_6VectorINS3_INS1_11UserProfile2V112BasicProfileEEEEEEaSERKSA_
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common12IntrusivePtrINS2_6VectorINS3_INS1_11UserProfile2V113BasicPresenceEEEEEEaSERKSA_
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common15TransactionBaseINS2_12IntrusivePtrINS1_11UserProfile2V118GetFriendsResponseEEENS4_INS2_18ResponseHeaderBaseEEEE5abortEv
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common15TransactionBaseINS2_12IntrusivePtrINS1_11UserProfile2V124GetBlockingUsersResponseEEENS4_INS2_18ResponseHeaderBaseEEEE5abortEv
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common15TransactionBaseINS2_12IntrusivePtrINS1_11UserProfile2V125GetBasicPresencesResponseEEENS4_INS2_18ResponseHeaderBaseEEEE5abortEv
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common15TransactionBaseINS2_12IntrusivePtrINS1_11UserProfile2V125GetPublicProfilesResponseEEENS4_INS2_18ResponseHeaderBaseEEEE5abortEv
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common15TransactionBaseINS2_12IntrusivePtrINS1_30CommunicationRestrictionStatus2V338CommunicationRestrictionStatusResponseEEENS4_INS2_18ResponseHeaderBaseEEEEaSERKSB_
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common6VectorINS2_12IntrusivePtrINS1_11UserProfile2V112BasicProfileEEEE3endEv
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common6VectorINS2_12IntrusivePtrINS1_11UserProfile2V112BasicProfileEEEE5beginEv
libSceNpCppWebApi _ZN3sce2Np9CppWebApi6Common8IteratorINS2_12IntrusivePtrINS1_11UserProfile2V112BasicProfileEEEEppEv
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi11UserProfile2V112BasicProfile11getOnlineIdEv
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi11UserProfile2V112BasicProfile13onlineIdIsSetEv
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi11UserProfile2V112BasicProfile17getPersonalDetailEv
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi11UserProfile2V112BasicProfile19personalDetailIsSetEv
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi11UserProfile2V112BasicProfile23getIsOfficiallyVerifiedEv
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi11UserProfile2V112BasicProfile25isOfficiallyVerifiedIsSetEv
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi11UserProfile2V113BasicPresence14accountIdIsSetEv
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi11UserProfile2V113BasicPresence14inContextIsSetEv
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi11UserProfile2V113BasicPresence17onlineStatusIsSetEv
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi11UserProfile2V114PersonalDetail14getDisplayNameEv
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi6Common15TransactionBaseINS2_12IntrusivePtrINS1_11UserProfile2V118GetFriendsResponseEEENS4_INS2_18ResponseHeaderBaseEEEE5getIdEv
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi6Common15TransactionBaseINS2_12IntrusivePtrINS1_11UserProfile2V124GetBlockingUsersResponseEEENS4_INS2_18ResponseHeaderBaseEEEE5getIdEv
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi6Common15TransactionBaseINS2_12IntrusivePtrINS1_11UserProfile2V125GetBasicPresencesResponseEEENS4_INS2_18ResponseHeaderBaseEEEE5getIdEv
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi6Common15TransactionBaseINS2_12IntrusivePtrINS1_11UserProfile2V125GetPublicProfilesResponseEEENS4_INS2_18ResponseHeaderBaseEEEE5getIdEv
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi6Common8IteratorINS2_12IntrusivePtrINS1_11UserProfile2V112BasicProfileEEEEdeEv
libSceNpCppWebApi _ZNK3sce2Np9CppWebApi6Common8IteratorINS2_12IntrusivePtrINS1_11UserProfile2V112BasicProfileEEEEneERKS9_

Changed libraries (implemented exports)

Library Before After Change
libSceNpCppWebApi 408/664 (61.45%) 458/751 (60.99%) -0.46 pp

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 21, 2026
@akkadbakkad89
akkadbakkad89 force-pushed the feat/np-webapi-up-generics branch from 02ec84b to 2ab9e22 Compare October 21, 2026 10:42
@github-actions github-actions Bot added docs prx and removed needs rebase Conflicts with main, rebase needed labels Oct 21, 2026
@Ondra97

Ondra97 commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

I opened #9612 to preserve aliased inputs in the existing Common::String::append and Common::Vector::pushBack helpers. Its tests add cases after TestVectorPushBackCopiesStringContent in GuestNpCppWebApiString.cpp, the same insertion point used here and in #8959. The export changes are separate. I declared #9612 dependent on #8959 and #9015 and will reconcile the test insertion after their changes.

@oneandonlydean

Copy link
Copy Markdown
Collaborator

@akkadbakkad89 This PR carries #8959, so it needs the same two IntrusivePtr fixes I described there, and its own commit has a few more of the same kind:

  1. Copy constructors that drop their source. Please change these to (IntrusivePtr* self, const IntrusivePtr* source) { CopyIntrusivePtr(self, source, 0x00); }: IntrusivePtr<CommunicationRestrictionStatusResponse> (C1ERKS7_), IntrusivePtr<BasicPresence> and IntrusivePtr<BasicProfile> (C1ERS7_).
  2. IntrusivePtr<Vector<...>> at offset 0x00. These should use 0x30, like the existing vector helpers: the destructor for Vector<IntrusivePtr<BasicProfile>>, and operator= for Vector<IntrusivePtr<BasicPresence>> and Vector<IntrusivePtr<BasicProfile>>.

Once #8959 has its fix, rebasing this onto it picks those changes up as well.

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 23, 2026
@oneandonlydean

Copy link
Copy Markdown
Collaborator

@akkadbakkad89 #8561 just merged, and it adds libSceNpCppWebApi instantiations in the same files as this PR, so the PR now conflicts with main. The export sets don't overlap, but the hunks interleave in many places, so it's best resolved on your side. Could you rebase onto main? That's a good moment to fold in the small change still open from the earlier review too.

@akkadbakkad89
akkadbakkad89 force-pushed the feat/np-webapi-up-generics branch from 2ab9e22 to 405dad3 Compare October 23, 2026 02:41
@akkadbakkad89

Copy link
Copy Markdown
Contributor Author

@oneandonlydean rebased onto main (past #8561, via the #8959 base) and folded in the earlier review items — head 405dad315e06:

  • IntrusivePtr<CommunicationRestrictionStatusResponse> (C1ERKS7_), IntrusivePtr<BasicPresence> and IntrusivePtr<BasicProfile> (C1ERS7_) copy ctors now use CopyIntrusivePtr(self, source, 0x00).
  • Vector<IntrusivePtr<BasicProfile>> destructor and the BasicPresence/BasicProfile operator=s moved to 0x30.

#8959 carries the same fixes under it (2d4730946a + 45bc4321632a), so rebasing picked those up as you described. g++ -fsyntax-only clean, conventions clean.

AI-assisted: yes (Devin).

@wachi35676

Copy link
Copy Markdown
Contributor

Tested head 405dad315e merged onto main 14eb2cda22 on Windows 11 (WinLibs GCC 15.2.0, Release, BUILD_TESTING=ON). The description reports only a syntax check on WSL, so this is a full build.

  • libSceNpCppWebApi builds with MinGW, and the existing guest_np_cpp_web_api* tests pass 2 of 2 runs (4/4).
  • With Export.cpp from main the same tests also pass. None of the new UserProfile and Common exports is covered by a registered test, and the string-harness run in the description isn't part of ctest.

AI-assisted: yes (Claude Code); results above were run on this machine.

@oneandonlydean

Copy link
Copy Markdown
Collaborator

@akkadbakkad89 Thanks for the rebase. One thing before this can merge: none of the 87 new exports is called by a registered test, so the existing guest_np_cpp_web_api* tests pass with or without this change (wachi35676 confirmed that on Windows). Could you add cases to the existing GuestNpCppWebApiIntrusivePtr.cpp / GuestNpCppWebApiSignedOut.cpp tests (or a new registered one) that call a representative set through the exports: the IntrusivePtr<BasicProfile> / <BasicPresence> / <CommunicationRestrictionStatusResponse> copy constructors and destructors with the reference count checked, the Vector<IntrusivePtr<BasicProfile>> destructor and the BasicPresence/BasicProfile operator= at their 0x30 layout, one model constructor plus an ...IsSet getter, and a Transaction<...>::hasResponse on the offline path? Each should fail against main's Export.cpp. The string harness from the description is fine to drop once these are in ctest.

akkadbakkad89 and others added 2 commits October 26, 2026 05:43
…ommon instantiations

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@akkadbakkad89
akkadbakkad89 force-pushed the feat/np-webapi-up-generics branch from 405dad3 to 9b8debb Compare October 26, 2026 05:48
@akkadbakkad89

Copy link
Copy Markdown
Contributor Author

Registered coverage for the new exports is in at 9b8debb8fd (rebased onto 5a2744c55e past the canonical-header refactor):

  • GuestNpCppWebApiIntrusivePtr.cpp table arrays now include IntrusivePtr<BasicProfile> / <BasicPresence> / <CommunicationRestrictionStatusResponse> copy constructors and destructors (refcount checked at offset 0), Vector<IntrusivePtr<BasicProfile>> destructor at the 0x30 offset, plus the GetPublicProfilesResponse / CommunicationRestrictionStatusResponse default ctors and three ptEv accessors.
  • New TestUserProfileVectorAssign covers Vector<IntrusivePtr<BasicProfile>>::operator= and Vector<IntrusivePtr<BasicPresence>>::operator= at the 0x30 refcount layout: old element released with its deleter invoked once, new element count incremented, copy semantics verified on a null target too.
  • New TestUserProfileModelAndTransaction calls the BasicProfile model ctor, exercises onlineIdIsSet (asserts the std::runtime_error from NotImplemented — the impl stub), and runs Transaction<GetPublicProfilesResponse>::hasResponse on the offline path through its ctor/dtor.

Red/green verified: against origin/main's Export.cpp the test fails to link with 24 undefined references (the symbols do not exist there); against this branch it builds and all 4 guest_np_cpp_web_api* tests pass (ctest -R guest_np_cpp_web_api: 4/4).

The rebase also surfaced a real gap: the 87 new exports had no Api.hpp declarations, which test_public_headers.py --audit-only flags (expected exactly one header declaration; found 0). Declarations mirroring the Export.cpp signatures are added — audit now reports 368 libraries, 12284 exports: unique declarations and umbrella coverage verified.

@oneandonlydean

Copy link
Copy Markdown
Collaborator

@akkadbakkad89 Thanks, the new registered coverage answers #9015 (comment): the copy/destructor refcount checks, the 0x30 operator= cases, the model constructor and the offline hasResponse path are what I was after.

One small change: please drop the onlineIdIsSet throw check in core/libs/tests/GuestNpCppWebApiIntrusivePtr.cpp:265-270. My request for an ...IsSet getter was a bad pick, since those accessors are still stubs, and requiring the NotImplemented exception means the test would fail as soon as the accessor is implemented. Keep the BasicProfile constructor call and everything else in TestUserProfileModelAndTransaction. The production stub and its debt line can stay as they are; no accessor implementation is needed. After that we'll run the guest_np_cpp_web_api* tests on Linux and Windows on the new head.

…istered tests

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@akkadbakkad89
akkadbakkad89 force-pushed the feat/np-webapi-up-generics branch from 9b8debb to 7a95148 Compare October 26, 2026 08:47
@akkadbakkad89

Copy link
Copy Markdown
Contributor Author

Done at 7a95148e53 — dropped the onlineIdIsSet throw-check (you're right: requiring NotImplemented would break the test the moment the accessor is implemented). TestUserProfileModelAndTransaction keeps the BasicProfile ctor call and the offline Transaction<GetPublicProfilesResponse> ctor/hasResponse/dtor path; everything else in the table arrays and TestUserProfileVectorAssign is unchanged. guest_np_cpp_web_api_intrusive_ptr_tests still passes.

@AlexFigas

Copy link
Copy Markdown
Contributor

@akkadbakkad89 Two of my PRs overlap this one textually; the overlap bot lists both:

Each resolution keeps both sides unchanged. Both of mine have approved code, so I'd propose they land first and this one after, with Depends on: #10925, #11235 here. If you'd rather this one went first, say so and I'll declare Depends on: #9015 on mine and rebase them instead.

@akkadbakkad89

Copy link
Copy Markdown
Contributor Author

Go ahead — both PRs verified: #10925 (2 approvals) edits the destructor table and the main() region where this PR's new probes sit, and #11235 (approved) rewrites the adjacent sce::Np::CppWebApi::Common debt line, so the resolutions are the keep-both-sides kind either way. Depends on is updated to #8959, #10925, #11235 — land yours first and I'll rebase after.

@github-actions

Copy link
Copy Markdown

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.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 11475 docs/dev/debt/libSceNpCppWebApi.md L20

@oneandonlydean
oneandonlydean merged commit a142f7b into boykopovar:main Oct 26, 2026
12 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.

5 participants