diff options
author | Reiko Asakura | 2020-08-20 15:43:34 -0400 |
---|---|---|
committer | Reiko Asakura | 2020-08-20 15:43:34 -0400 |
commit | f7e52fe949737f0a6c5da34e2aa3fd6a008bbff3 (patch) | |
tree | 77b1a9b459fde21a5650253351e389a6d74dcfa5 | |
parent | Move defns psp2/apputil.h to psp2common/appmgr.h (diff) | |
download | vds-libraries-f7e52fe949737f0a6c5da34e2aa3fd6a008bbff3.tar.gz |
Add sceAppMgrDrmOpen/Close
-rw-r--r-- | include/common/appmgr.h | 13 | ||||
-rw-r--r-- | include/kernel/appmgr.h | 10 | ||||
-rw-r--r-- | include/user/appmgr.h | 1 |
3 files changed, 20 insertions, 4 deletions
diff --git a/include/common/appmgr.h b/include/common/appmgr.h index 942cccf..da3a63a 100644 --- a/include/common/appmgr.h +++ b/include/common/appmgr.h @@ -14,6 +14,8 @@ extern "C" { #define SCE_APPMGR_SAVEDATA_SLOT_DETAIL_MAXSIZE 512 #define SCE_APPMGR_SAVEDATA_SLOT_ICON_PATH_MAXSIZE 64 +#define SCE_APPMGR_NP_DRM_ADDCONT_ID_SIZE 17 + typedef SceUInt32 SceAppMgrSaveDataSlotStatus; typedef SceUInt32 SceAppMgrSaveDataDataSaveMode; @@ -43,6 +45,17 @@ typedef struct SceAppMgrSaveDataDataSaveItem { SceChar8 reserved[36]; } SceAppMgrSaveDataDataSaveItem; +typedef struct SceAppMgrDrmAddcontId { + SceChar8 data[SCE_APPMGR_NP_DRM_ADDCONT_ID_SIZE]; + SceChar8 padding[3]; +} SceAppMgrDrmAddcontId; + +typedef struct SceAppMgrDrmAddcontParam { + SceSize size; + SceAppMgrDrmAddcontId dirName; + SceAppMgrMountPoint mountPoint; +} SceAppMgrDrmAddcontParam; + #if defined(_LANGUAGE_C_PLUS_PLUS)||defined(__cplusplus)||defined(c_plusplus) } #endif diff --git a/include/kernel/appmgr.h b/include/kernel/appmgr.h index 2f8e91a..8bec551 100644 --- a/include/kernel/appmgr.h +++ b/include/kernel/appmgr.h @@ -1,7 +1,7 @@ #ifndef _PSP2_KERNEL_APPMGR_H_ #define _PSP2_KERNEL_APPMGR_H_ -#include <psp2kern/types.h> +#include <psp2common/appmgr.h> #ifdef __cplusplus extern "C" { @@ -33,18 +33,22 @@ typedef struct /** * @brief Launch an application for debugging - * + * * @param[in] path Path to the executable to load * @param[in] args Arguments to pass to the executable and to configure appmgr * @param[in] arg_size The size of the args passed in * @param[in] type Set to 0x80000000 for debugging launch * @param[in] param pointer to launch params * @param unk unknown, set to nullptr - * + * * @return pid on success, else < 0. */ int sceAppMgrLaunchAppByPath(const char *path, const char *args, SceSize arg_size, unsigned int type, const SceAppMgrLaunchParam *param, void *unk); +SceInt32 sceAppMgrDrmOpen(const SceAppMgrDrmAddcontParam *pParam); + +SceInt32 sceAppMgrDrmClose(const SceAppMgrDrmAddcontParam *pParam); + #ifdef __cplusplus } #endif diff --git a/include/user/appmgr.h b/include/user/appmgr.h index b483b9e..8333372 100644 --- a/include/user/appmgr.h +++ b/include/user/appmgr.h @@ -3,7 +3,6 @@ #include <psp2common/appmgr.h> #include <psp2/scebase.h> -#include <psp2/types.h> #ifdef __cplusplus extern "C" { |