summaryrefslogtreecommitdiff
path: root/include/user/kernel/modulemgr.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/user/kernel/modulemgr.h')
-rw-r--r--include/user/kernel/modulemgr.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/user/kernel/modulemgr.h b/include/user/kernel/modulemgr.h
index ab41eba..abdf387 100644
--- a/include/user/kernel/modulemgr.h
+++ b/include/user/kernel/modulemgr.h
@@ -7,6 +7,20 @@
extern "C" {
#endif
+/**
+ * @brief Return values for plugins `module_start` and `module_stop`
+ */
+/** @{ */
+#define SCE_KERNEL_START_SUCCESS (0)
+#define SCE_KERNEL_START_RESIDENT SCE_KERNEL_START_SUCCESS
+#define SCE_KERNEL_START_NO_RESIDENT (1)
+#define SCE_KERNEL_START_FAILED (2)
+
+#define SCE_KERNEL_STOP_SUCCESS (0)
+#define SCE_KERNEL_STOP_FAIL (1)
+#define SCE_KERNEL_STOP_CANCEL SCE_KERNEL_STOP_FAIL
+/** @} */
+
typedef struct
{
SceUInt size; //< this structure size (0x18)
@@ -56,6 +70,19 @@ int sceKernelUnloadModule(SceUID modid, int flags, SceKernelULMOption *option);
SceUID sceKernelLoadStartModule(char *path, SceSize args, void *argp, int flags, SceKernelLMOption *option, int *status);
int sceKernelStopUnloadModule(SceUID modid, SceSize args, void *argp, int flags, SceKernelULMOption *option, int *status);
+typedef struct
+{
+ SceSize size;
+ char versionString[16];
+ SceUInt unk_14;
+ SceUInt unk_18;
+ SceUInt unk_1C;
+ SceUInt version;
+ SceUInt unk_24;
+} SceKernelFwInfo;
+
+int sceKernelGetSystemSwVersion(SceKernelFwInfo *data);
+
#ifdef __cplusplus
}
#endif