diff options
author | Davee | 2019-02-17 14:33:29 +0000 |
---|---|---|
committer | Sunguk Lee | 2019-02-17 23:37:24 +0900 |
commit | dd5a1a691ea287a4b1aa39388698c6b83db3a77f (patch) | |
tree | c3271e2e7bd36e54a8c742f7c77b65391168a635 /include/kernel | |
parent | Add for kernel MsgPipes (diff) | |
download | vds-libraries-dd5a1a691ea287a4b1aa39388698c6b83db3a77f.tar.gz |
add ksceKernelSysrootSetProcessHandler
Diffstat (limited to 'include/kernel')
-rw-r--r-- | include/kernel/kernel/sysmem.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/kernel/kernel/sysmem.h b/include/kernel/kernel/sysmem.h index 3675526..1f03ede 100644 --- a/include/kernel/kernel/sysmem.h +++ b/include/kernel/kernel/sysmem.h @@ -458,6 +458,32 @@ int sceDebugPutchar(int character); int sceDebugDisableInfoDump(int flag); +typedef struct +{ + size_t size; //!< sizeof(SceSysrootProcessHandler) + int (* unk_4)(void); + int (* unk_8)(void); + int (* unk_C)(void); + int (* unk_10)(void); + int (* unk_14)(void); + int (* unk_18)(void); + int (* on_process_created)(void); //!< called when process is created + int (* unk_20)(void); + int (* unk_24)(void); +} SceSysrootProcessHandler; + +/** + * Set handlers for the process lifecycle. + * + * This internal function allows a developer to introspect and receive events based + * on the process lifecycle. + * + * @param[in] handlers Pointer to struct containing the handlers. This function does not copy the handlers, so this pointer must remain valid after a successful call. + * + * @return 0 on success, < 0 on error. + */ +int sceKernelSysrootSetProcessHandler(const SceSysrootProcessHandler *handlers); + #ifdef __cplusplus } #endif |