summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/common/appmgr.h13
-rw-r--r--include/kernel/appmgr.h10
-rw-r--r--include/user/appmgr.h1
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" {