summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid2017-06-25 16:44:56 +0200
committerSunguk Lee2017-06-25 23:44:56 +0900
commit66ab80ca71e383b8e5e71c4dd4d937e3258b1ef8 (patch)
tree88870d1d002d293a39443cc409d5c6d1a163cf30
parentRefactor sceIo headers. (#204) (diff)
downloadvds-libraries-66ab80ca71e383b8e5e71c4dd4d937e3258b1ef8.tar.gz
add sceKernel(Start|Stop)Module / ksceKernelGetMemBlockBase definitions (#202)
* - add sceKernelStartModule / sceKernelStopModule definitions - add a few sceAppMgr definitions * add ksceKernelGetMemBlockBase definition
-rw-r--r--include/kernel/kernel/sysmem.h10
-rw-r--r--include/user/appmgr.h14
-rw-r--r--include/user/kernel/modulemgr.h3
3 files changed, 27 insertions, 0 deletions
diff --git a/include/kernel/kernel/sysmem.h b/include/kernel/kernel/sysmem.h
index e05202a..5bb0d4a 100644
--- a/include/kernel/kernel/sysmem.h
+++ b/include/kernel/kernel/sysmem.h
@@ -106,6 +106,16 @@ int sceKernelFreeMemBlock(SceUID uid);
*/
int sceKernelGetMemBlockBase(SceUID uid, void **basep);
+/***
+ * Find the SceUID of a memory block
+ *
+ * @param[in] addr - Base address of the memory block
+ * @param[in] size - Size to search for (usally set to 0)
+ *
+ * @return SceUID of the memory block on success, < 0 on error.
+*/
+SceUID sceKernelFindMemBlockByAddr(const void *addr, SceSize size);
+
/**
* Changes the block type
*
diff --git a/include/user/appmgr.h b/include/user/appmgr.h
index 65fd1d4..b659731 100644
--- a/include/user/appmgr.h
+++ b/include/user/appmgr.h
@@ -65,6 +65,15 @@ int sceAppMgrDestroyOtherApp(void);
//! name: The Title ID of the application
int sceAppMgrDestroyAppByName(char *name);
+//! appId: The application id of the application
+int sceAppMgrDestroyAppByAppId(SceUID appId);
+
+//! Get process id by app id for shell
+SceUID sceAppMgrGetProcessIdByAppIdForShell(SceUID appId);
+
+//! Get list of running app ids (usually returns 1 app id)
+int sceAppMgrGetRunningAppIdListForShell(SceUID *appIds, int count);
+
int _sceAppMgrGetAppState(SceAppMgrAppState *appState, uint32_t len, uint32_t version);
/**
@@ -100,6 +109,11 @@ int sceAppMgrLaunchAppByUri(int flags, char *uri);
//! param: The parameter passed to the application which can be retrieved with sceAppMgrGetAppParam
int sceAppMgrLaunchAppByName2(const char *name, const char *param, SceAppMgrLaunchAppOptParam *optParam);
+//! name: The Title ID of the application
+//! param: The parameter passed to the application which can be retrieved with sceAppMgrGetAppParam
+//! return AppId ?
+SceUID sceAppMgrLaunchAppByName2ForShell(const char *name, const char *param, SceAppMgrLaunchAppOptParam *optParam);
+
//! id: 100 (photo0), 101 (friends), 102 (messages), 103 (near), 105 (music), 108 (calendar)
int sceAppMgrAppDataMount(int id, char *mount_point);
diff --git a/include/user/kernel/modulemgr.h b/include/user/kernel/modulemgr.h
index ddf72dc..973f841 100644
--- a/include/user/kernel/modulemgr.h
+++ b/include/user/kernel/modulemgr.h
@@ -67,6 +67,9 @@ int sceKernelGetModuleInfo(SceUID modid, SceKernelModuleInfo *info);
SceUID sceKernelLoadModule(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(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);