summaryrefslogtreecommitdiff
path: root/include/user/kernel/modulemgr.h
diff options
context:
space:
mode:
authorTheOfficialFloW2016-01-22 18:15:41 +0100
committerTheOfficialFloW2016-01-22 18:15:41 +0100
commitf1a55722d1a72c29865405d770d0824626032900 (patch)
tree91d9e97c21aea5f9b71950d6e0001303e9fcdcc4 /include/user/kernel/modulemgr.h
parentAdded new NIDs (diff)
downloadvds-libraries-f1a55722d1a72c29865405d770d0824626032900.tar.gz
Fixed sceKernelUnloadModule
Diffstat (limited to 'include/user/kernel/modulemgr.h')
-rw-r--r--include/user/kernel/modulemgr.h26
1 files changed, 19 insertions, 7 deletions
diff --git a/include/user/kernel/modulemgr.h b/include/user/kernel/modulemgr.h
index f948b69..baf9a75 100644
--- a/include/user/kernel/modulemgr.h
+++ b/include/user/kernel/modulemgr.h
@@ -11,7 +11,7 @@ typedef struct
SceUInt memsz; //< size in memory
SceUInt flags; //< meanig unknown
SceUInt res; //< unused?
-} Psp2SegmentInfo;
+} SceKernelSegmentInfo;
typedef struct
{
@@ -31,13 +31,25 @@ typedef struct
SceSize tlsInitSize;
SceSize tlsAreaSize;
char path[256];
- Psp2SegmentInfo segments[4];
+ SceKernelSegmentInfo segments[4];
SceUInt type; //< 6 = user-mode PRX?
-} Psp2LoadedModuleInfo;
+} SceKernelModuleInfo;
-int sceKernelGetModuleList(int, SceUID *, unsigned int *);
-int sceKernelGetModuleInfo(SceUID, Psp2LoadedModuleInfo *);
-SceUID sceKernelLoadModule(const char *path, int flags, int *res);
-int sceKernelUnloadModule(SceUID);
+typedef struct {
+ SceSize size;
+} SceKernelLMOption;
+
+typedef struct {
+ SceSize size;
+} SceKernelULMOption;
+
+int sceKernelGetModuleList(int flags, SceUID *modids, int *num);
+int sceKernelGetModuleInfo(SceUID modid, SceKernelModuleInfo *info);
+
+SceUID sceKernelLoadModule(char *path, int flags, SceKernelLMOption *option);
+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);
#endif