summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReiko Asakura2021-03-03 20:35:43 -0500
committerReiko Asakura2021-03-03 20:35:43 -0500
commitecc7fa67fffdb97cd1d88ca11024f68fe9405bb3 (patch)
treedea40109c81d9432af55ab621e808d971d78c94f
parentImport SceNpWebApi NIDs from SDK 3.570.011 (diff)
downloadvds-libraries-ecc7fa67fffdb97cd1d88ca11024f68fe9405bb3.tar.gz
Add SceNpWebApi internal functions
Naming convention is based on SceNpWebApi from PS4's system software. Some of the functions added do not exist in PS4's SceNpWebApi, or exist as a non-internal function. Note that all PS4 export names can be verified with SHA1 digest. These name are made up: sceNpWebApiInitializeForSceShell sceNpWebApiModuleStartForSceShell sceNpWebApiModuleStopForSceShell
-rw-r--r--include/user/np/np_webapi.h157
-rw-r--r--nids/360/SceNpWebApi.yml19
2 files changed, 176 insertions, 0 deletions
diff --git a/include/user/np/np_webapi.h b/include/user/np/np_webapi.h
new file mode 100644
index 0000000..6ed8908
--- /dev/null
+++ b/include/user/np/np_webapi.h
@@ -0,0 +1,157 @@
+/*
+ Vita Development Suite Libraries
+*/
+
+#ifndef _VDSUITE_USER_NP_NP_WEBAPI_H
+#define _VDSUITE_USER_NP_NP_WEBAPI_H
+
+#include_next <np/np_webapi.h>
+
+#if defined(_LANGUAGE_C_PLUS_PLUS)||defined(__cplusplus)||defined(c_plusplus)
+extern "C" {
+#endif /* defined(_LANGUAGE_C_PLUS_PLUS)||defined(__cplusplus)||defined(c_plusplus) */
+
+/* -----------------------------------------------
+ * Initialize/Terminate
+ * ----------------------------------------------- */
+int32_t
+sceNpWebApiIntInitialize(
+ void *pMemPool,
+ size_t poolSize,
+ const char *pModuleName
+ );
+
+int32_t
+sceNpWebApiInitializeForSceShell(
+ void *pMemPool,
+ size_t poolSize
+ );
+
+int32_t
+sceNpWebApiIntTerminate(
+ int32_t libCtxId
+ );
+
+/* -----------------------------------------------
+ * Request
+ * ----------------------------------------------- */
+int32_t
+sceNpWebApiIntCreateRequest(
+ int32_t libCtxId,
+ const char *pApiGroup,
+ const char *pPath,
+ SceNpWebApiHttpMethod method,
+ const SceNpWebApiContentParameter *pContentParameter,
+ const char unk[0x410],
+ int64_t *pRequestId
+ );
+
+/* -----------------------------------------------
+ * Memory
+ * ----------------------------------------------- */
+int32_t
+sceNpWebApiIntGetMemoryPoolStats(
+ int32_t libCtxId,
+ SceNpWebApiMemoryPoolStats *pCurrentStat
+ );
+
+/* -----------------------------------------------
+ * Handle
+ * ----------------------------------------------- */
+int32_t
+sceNpWebApiIntCreateHandle(
+ int32_t libCtxId
+ );
+
+int32_t
+sceNpWebApiIntDeleteHandle(
+ int32_t libCtxId,
+ int32_t handleId
+ );
+
+int32_t
+sceNpWebApiIntAbortHandle(
+ int32_t libCtxId,
+ int32_t handleId
+ );
+
+/* -----------------------------------------------
+ * Multi Part
+ * ----------------------------------------------- */
+int32_t
+sceNpWebApiIntCreateMultipartRequest(
+ int32_t libCtxId,
+ const char *pApiGroup,
+ const char *pPath,
+ SceNpWebApiHttpMethod method,
+ int64_t *pRequestId
+ );
+
+/* -----------------------------------------------
+ * Push Event
+ * ----------------------------------------------- */
+int32_t
+sceNpWebApiIntCreatePushEventFilter(
+ int32_t libCtxId,
+ const SceNpWebApiPushEventDataType *pDataType,
+ size_t dataTypeNum
+ );
+
+int32_t
+sceNpWebApiIntDeletePushEventFilter(
+ int32_t libCtxId,
+ int32_t filterId
+ );
+
+int32_t
+sceNpWebApiIntRegisterPushEventCallback(
+ int32_t libCtxId,
+ int32_t filterId,
+ SceNpWebApiPushEventCallback cbFunc,
+ void *pUserArg
+ );
+
+int32_t
+sceNpWebApiIntUnregisterPushEventCallback(
+ int32_t libCtxId,
+ int32_t callbackId
+ );
+
+/* -----------------------------------------------
+ * Service Push Event
+ * ----------------------------------------------- */
+int32_t
+sceNpWebApiIntCreateServicePushEventFilter(
+ int32_t libCtxId,
+ int32_t handleId,
+ const char *pNpServiceName,
+ SceNpServiceLabel npServiceLabel,
+ const SceNpWebApiPushEventDataType *pDataType,
+ size_t dataTypeNum
+ );
+
+int32_t
+sceNpWebApiIntDeleteServicePushEventFilter(
+ int32_t libCtxId,
+ int32_t filterId
+ );
+
+int32_t
+sceNpWebApiIntRegisterServicePushEventCallback(
+ int32_t libCtxId,
+ int32_t filterId,
+ SceNpWebApiServicePushEventCallback cbFunc,
+ void *pUserArg
+ );
+
+int32_t
+sceNpWebApiIntUnregisterServicePushEventCallback(
+ int32_t libCtxId,
+ int32_t callbackId
+ );
+
+#if defined(_LANGUAGE_C_PLUS_PLUS)||defined(__cplusplus)||defined(c_plusplus)
+}
+#endif /* defined(_LANGUAGE_C_PLUS_PLUS)||defined(__cplusplus)||defined(c_plusplus) */
+
+#endif /* _VDSUITE_USER_NP_NP_WEBAPI_H */
diff --git a/nids/360/SceNpWebApi.yml b/nids/360/SceNpWebApi.yml
index 8bb6e8a..5daeaf0 100644
--- a/nids/360/SceNpWebApi.yml
+++ b/nids/360/SceNpWebApi.yml
@@ -28,6 +28,25 @@ modules:
sceNpWebApiGetMemoryPoolStats: 0x9DF7EE1E
sceNpWebApiGetNpTitleId: 0xB65DF857
sceNpWebApiInitialize: 0x8519EB34
+ sceNpWebApiInitializeForSceShell: 0xE8FBA9B8
+ sceNpWebApiIntAbortHandle: 0x1140FA82
+ sceNpWebApiIntCreateHandle: 0xBED99F66
+ sceNpWebApiIntCreateMultipartRequest: 0x93BBA612
+ sceNpWebApiIntCreatePushEventFilter: 0x19062C5A
+ sceNpWebApiIntCreateRequest: 0x0D910413
+ sceNpWebApiIntCreateServicePushEventFilter: 0x159396F0
+ sceNpWebApiIntDeleteHandle: 0x1D427258
+ sceNpWebApiIntDeletePushEventFilter: 0x6CDD45B6
+ sceNpWebApiIntDeleteServicePushEventFilter: 0xC359A88A
+ sceNpWebApiIntGetMemoryPoolStats: 0x6E6AFA39
+ sceNpWebApiIntInitialize: 0xA11FBA1A
+ sceNpWebApiIntRegisterPushEventCallback: 0x83E94928
+ sceNpWebApiIntRegisterServicePushEventCallback: 0x1BDB76C0
+ sceNpWebApiIntTerminate: 0x66CEC1A6
+ sceNpWebApiIntUnregisterPushEventCallback: 0xFDCBD57D
+ sceNpWebApiIntUnregisterServicePushEventCallback: 0xC18E6DAA
+ sceNpWebApiModuleStartForSceShell: 0xE83CE7F1
+ sceNpWebApiModuleStopForSceShell: 0x8D83A2D0
sceNpWebApiReadData: 0xBA75BF6E
sceNpWebApiRegisterExtdPushEventCallback: 0xE75796DD
sceNpWebApiRegisterPushEventCallback: 0xDB04ECD6