summaryrefslogtreecommitdiff
path: root/include/user
diff options
context:
space:
mode:
Diffstat (limited to 'include/user')
-rw-r--r--include/user/kernel/modulemgr.h35
1 files changed, 3 insertions, 32 deletions
diff --git a/include/user/kernel/modulemgr.h b/include/user/kernel/modulemgr.h
index b065f10..a52b694 100644
--- a/include/user/kernel/modulemgr.h
+++ b/include/user/kernel/modulemgr.h
@@ -1,26 +1,14 @@
#ifndef _PSP2_KERNEL_MODULEMGR_H_
#define _PSP2_KERNEL_MODULEMGR_H_
-#include <psp2/types.h>
+#include_next <kernel/modulemgr.h>
+
+#include <stdint.h>
#ifdef __cplusplus
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 enum SceKernelModuleState {
SCE_KERNEL_MODULE_STATE_READY = 0x00000002,
SCE_KERNEL_MODULE_STATE_STARTED = 0x00000006,
@@ -58,26 +46,9 @@ typedef struct SceKernelModuleInfo {
SceUInt state; //!< see:SceKernelModuleState
} SceKernelModuleInfo;
-typedef struct SceKernelLMOption {
- SceSize size;
-} SceKernelLMOption;
-
-typedef struct SceKernelULMOption {
- SceSize size;
-} SceKernelULMOption;
-
int sceKernelGetModuleList(int flags, SceUID *modids, SceSize *num);
int sceKernelGetModuleInfo(SceUID modid, SceKernelModuleInfo *info);
-SceUID sceKernelLoadModule(const char *path, int flags, SceKernelLMOption *option);
-int sceKernelUnloadModule(SceUID modid, int flags, SceKernelULMOption *option);
-
-int sceKernelStartModule(SceUID modid, SceSize args, void *argp, int flags, void *option, int *status);
-int sceKernelStopModule(SceUID modid, SceSize args, void *argp, int flags, void *option, int *status);
-
-SceUID sceKernelLoadStartModule(const 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 SceKernelFwInfo {
SceSize size;
char versionString[0x1C];