summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReiko Asakura2021-04-18 20:54:57 -0400
committerReiko Asakura2021-04-18 20:54:57 -0400
commite252a69f7e443cb6d3d918fcf31ef6a91a7233aa (patch)
tree658b6e8062534d915c272e2654533fa8952d033a
parentUpdate ScePaf NIDs and headers (diff)
downloadvds-libraries-e252a69f7e443cb6d3d918fcf31ef6a91a7233aa.tar.gz
Add SceNpKdc functions
-rw-r--r--include/user/np.h12
-rw-r--r--include/user/np/np_kdc.h60
-rw-r--r--nids/360/SceNpKdc.yml13
3 files changed, 85 insertions, 0 deletions
diff --git a/include/user/np.h b/include/user/np.h
new file mode 100644
index 0000000..5973539
--- /dev/null
+++ b/include/user/np.h
@@ -0,0 +1,12 @@
+/*
+ Vita Development Suite Libraries
+*/
+
+#ifndef _VDSUITE_USER_NP_H
+#define _VDSUITE_USER_NP_H
+
+#include_next <np.h>
+
+#include <np/np_kdc.h>
+
+#endif /* _VDSUITE_USER_NP_H */
diff --git a/include/user/np/np_kdc.h b/include/user/np/np_kdc.h
new file mode 100644
index 0000000..29c9b53
--- /dev/null
+++ b/include/user/np/np_kdc.h
@@ -0,0 +1,60 @@
+/*
+ Vita Development Suite Libraries
+*/
+
+#ifndef _VDSUITE_USER_NP_NP_KDC_H
+#define _VDSUITE_USER_NP_NP_KDC_H
+
+#include <scetypes.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) */
+
+int
+sceNpKdcInit(
+ SceSize poolSize,
+ void *poolBase
+ );
+
+int
+sceNpKdcTerm(
+ void
+ );
+
+int
+sceNpKdcAbortReq(
+ void
+ );
+
+int
+sceNpKdcActivateConsole(
+ int *maxConsole,
+ int *currentConsole,
+ const char *epassword
+ );
+
+int
+sceNpKdcDeactivateConsole(
+ int *maxConsole,
+ int *currentConsole,
+ const char *epassword,
+ SceBool forceReq
+ );
+
+int
+sceNpKdcGetProductRif(
+ const char *productId,
+ const char *epassword,
+ void *rifBuf,
+ SceSize rifBufSize,
+ SceSize *rifSize,
+ int *maxConsole,
+ int *currentConsole
+ );
+
+#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_KDC_H */
diff --git a/nids/360/SceNpKdc.yml b/nids/360/SceNpKdc.yml
new file mode 100644
index 0000000..0ea5a62
--- /dev/null
+++ b/nids/360/SceNpKdc.yml
@@ -0,0 +1,13 @@
+modules:
+ SceNpKdc:
+ nid: 0x8486104C
+ libraries:
+ SceNpKdc:
+ nid: 0x52115CC3
+ functions:
+ sceNpKdcAbortReq: 0xC3B78C87
+ sceNpKdcActivateConsole: 0xD8903721
+ sceNpKdcDeactivateConsole: 0x23521D81
+ sceNpKdcGetProductRif: 0x78E56B9B
+ sceNpKdcInit: 0x26F8A1B9
+ sceNpKdcTerm: 0x06CB1007