From 15da0ea28dfaf0f0b90becc15bb05ffd04cccb0b Mon Sep 17 00:00:00 2001 From: Princess of Sleeping Date: Fri, 6 Nov 2020 11:08:44 +0900 Subject: Add prototypes and docs in kernel/sblacmgr.h --- include/kernel/sblacmgr.h | 74 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) (limited to 'include/kernel') diff --git a/include/kernel/sblacmgr.h b/include/kernel/sblacmgr.h index 982ccfa..115832a 100644 --- a/include/kernel/sblacmgr.h +++ b/include/kernel/sblacmgr.h @@ -11,10 +11,84 @@ extern "C" { #endif +/** + * @brief Get process type state + * + * @param[in] pid - The target process id + * + * @return If root mode process, 1. else 0. + */ +int sceSblACMgrIsRootProgram(SceUID pid); + +/** + * @brief Get process type state + * + * @param[in] pid - The target process id + * + * @return If system mode process, 1. else 0. + */ int sceSblACMgrIsSystemProgram(SceUID pid); + +/** + * @brief Get process type state + * + * @param[in] pid - The target process id + * + * @return If pspemu process, 1. else 0. + */ int sceSblACMgrIsPspEmu(SceUID pid); + +/** + * @brief Get process type state + * + * @param[in] pid - The target process id + * + * @return If game mode process, 1. else 0. + */ int sceSblACMgrIsGameProgram(SceUID pid); + +/** + * @brief Get process type state + * + * @param[in] pid - The target process id + * + * @return If non game mode process, 1. else 0. + */ int sceSblACMgrIsNonGameProgram(SceUID pid); + +/** + * @brief Get process type state + * + * @param[in] pid - The target process id + * + * @return If SceShell process(authid:0x2800000000000001), 1. else 0. + */ +int sceSblACMgrIsSceShell(SceUID pid); + +/** + * @brief Get process type state + * + * @param[in] pid - The target process id + * + * @return If fake self process, 1. else 0. + */ +int sceSblACMgrIsFself(SceUID pid); + +/** + * @brief Get process authority id + * + * @param[in] pid - The target process id + * @param[out] authid - The authid output pointer + * + * @return 0 on success, < 0 on error. + */ +int sceSblACMgrGetProcessProgramAuthId(SceUID pid, SceUInt64 *authid); + +/** + * @brief Get development mode state + * + * @return If development mode, 1. else 0. + */ int sceSblACMgrIsDevelopmentMode(void); #ifdef __cplusplus -- cgit v1.2.3