summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReiko Asakura2021-01-16 15:41:09 -0500
committerReiko Asakura2021-01-16 15:41:09 -0500
commitaccb1030a95675f964c9f6a363f8269744362d3c (patch)
treeffac24a477629ce65ea67aff9cd05dd38ce6198d
parentUpdate build script (diff)
downloadvds-libraries-accb1030a95675f964c9f6a363f8269744362d3c.tar.gz
Remove dupe: appmgr.h
-rw-r--r--include/common/appmgr.h2
-rw-r--r--include/user/appmgr.h119
2 files changed, 4 insertions, 117 deletions
diff --git a/include/common/appmgr.h b/include/common/appmgr.h
index da3a63a..a09838e 100644
--- a/include/common/appmgr.h
+++ b/include/common/appmgr.h
@@ -1,7 +1,7 @@
#ifndef _DOLCESDK_PSP2COMMON_APPMGR_H_
#define _DOLCESDK_PSP2COMMON_APPMGR_H_
-#include <psp2common/types.h>
+#include_next <appmgr.h>
#if defined(_LANGUAGE_C_PLUS_PLUS)||defined(__cplusplus)||defined(c_plusplus)
extern "C" {
diff --git a/include/user/appmgr.h b/include/user/appmgr.h
index 5815ae1..7680b6d 100644
--- a/include/user/appmgr.h
+++ b/include/user/appmgr.h
@@ -1,52 +1,14 @@
#ifndef _PSP2_APPMGR_H_
#define _PSP2_APPMGR_H_
-#include <psp2common/appmgr.h>
-#include <psp2/scebase.h>
+#include_next <appmgr.h>
+
+#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
-#define _SCE_APPMGR_VERSION (SCE_PSP2_SDK_VERSION & 0xffff0000)
-
-typedef enum SceAppMgrErrorCode {
- SCE_APPMGR_ERROR_BUSY = (int)0x80802000, //!< Busy
- SCE_APPMGR_ERROR_STATE = (int)0x80802013, //!< Invalid state
- SCE_APPMGR_ERROR_NULL_POINTER = (int)0x80802016, //!< NULL pointer
- SCE_APPMGR_ERROR_INVALID = (int)0x8080201A, //!< Invalid param
- SCE_APPMGR_ERROR_TOO_LONG_ARGV = (int)0x8080201D, //!< argv is too long
- SCE_APPMGR_ERROR_INVALID_SELF_PATH = (int)0x8080201E, //!< Invalid SELF path
- SCE_APPMGR_ERROR_BGM_PORT_BUSY = (int)0x80803000 //!< BGM port was occupied and could not be secured
-} SceAppMgrErrorCode;
-
-typedef enum SceAppMgrSystemEventType {
- SCE_APPMGR_SYSTEMEVENT_ON_RESUME = 0x10000003,
- SCE_APPMGR_SYSTEMEVENT_ON_STORE_PURCHASE = 0x10000004,
- SCE_APPMGR_SYSTEMEVENT_ON_NP_MESSAGE_ARRIVED = 0x10000005,
- SCE_APPMGR_SYSTEMEVENT_ON_STORE_REDEMPTION = 0x10000006
-} SceAppMgrSystemEventType;
-
-typedef enum SceAppMgrInfoBarVisibility {
- SCE_APPMGR_INFOBAR_VISIBILITY_INVISIBLE = 0,
- SCE_APPMGR_INFOBAR_VISIBILITY_VISIBLE = 1
-} SceAppMgrInfoBarVisibility;
-
-typedef enum SceAppMgrInfoBarColor {
- SCE_APPMGR_INFOBAR_COLOR_BLACK = 0,
- SCE_APPMGR_INFOBAR_COLOR_WHITE = 1
-} SceAppMgrInfoBarColor;
-
-typedef enum SceAppMgrInfoBarTransparency {
- SCE_APPMGR_INFOBAR_TRANSPARENCY_OPAQUE = 0,
- SCE_APPMGR_INFOBAR_TRANSPARENCY_TRANSLUCENT = 1
-} SceAppMgrInfoBarTransparency;
-
-typedef struct SceAppMgrSystemEvent {
- int systemEvent; //!< One of ::SceAppMgrSystemEventType
- uint8_t reserved[60]; //!< Reserved data
-} SceAppMgrSystemEvent;
-
typedef struct SceAppMgrSaveDataData {
int size; //!< Must be 0x4C
unsigned int slotId; //!< Save slot to use
@@ -82,22 +44,9 @@ typedef struct SceAppMgrSaveDataSlotDelete {
SceAppMgrMountPoint mountPoint; //!< Savedata mountpoint
} SceAppMgrSaveDataSlotDelete;
-typedef struct SceAppMgrAppState {
- SceUInt32 systemEventNum;
- SceUInt32 appEventNum;
- SceBool isSystemUiOverlaid;
- SceUInt8 reserved[116];
-} SceAppMgrAppState;
-
typedef struct SceAppMgrExecOptParam SceAppMgrExecOptParam; // Missing struct
typedef struct SceAppMgrLaunchAppOptParam SceAppMgrLaunchAppOptParam; // Missing struct
-typedef struct sceAppMgrLoadExecOptParam {
- int reserved[64]; //!< Reserved data
-} sceAppMgrLoadExecOptParam;
-
-#define SCE_APPMGR_MAX_APP_NAME_LENGTH (31)
-
#define SCE_APPMGR_BUDGET_MODE_MAIN 2 // Main LPDDR2 only
#define SCE_APPMGR_BUDGET_MODE_MAIN_PHYCONT 3 // Main and phycont or CDLG which is also contiguous
#define SCE_APPMGR_BUDGET_MODE_MAIN_PHYCONT_CDLG 4 // Main and phycont and CDLG
@@ -254,26 +203,6 @@ SceUID sceAppMgrGetProcessIdByAppIdForShell(SceUID appId);
int sceAppMgrGetRunningAppIdListForShell(SceUID *appIds, int count);
/**
- * Get an application state
- *
- * @param[out] appState - State of the application
- * @param[in] len - sizeof(SceAppMgrState)
- * @param[in] version - Version (?)
-
- * @return 0 on success, < 0 on error.
- */
-int _sceAppMgrGetAppState(SceAppMgrAppState *appState, SceSize len, uint32_t version);
-
-/**
- * Receive system event
- *
- * @param[out] systemEvent - Received system event
-
- * @return 0 on success, < 0 on error.
- */
-int sceAppMgrReceiveSystemEvent(SceAppMgrSystemEvent *systemEvent);
-
-/**
* Copies app param to an array
*
* @param[out] param - pointer to a 1024 byte location to store the app param
@@ -285,48 +214,6 @@ int sceAppMgrReceiveSystemEvent(SceAppMgrSystemEvent *systemEvent);
int sceAppMgrGetAppParam(char *param);
/**
- * Obtains the BGM port, even when it is not in front
- *
- * @return 0 on success, < 0 on error.
- *
- */
-int sceAppMgrAcquireBgmPort(void);
-
-/**
- * Release acquired BGM port
- *
- * @return 0 on success, < 0 on error.
- *
- */
-int sceAppMgrReleaseBgmPort(void);
-
-/**
- * Set infobar state
- *
- * @param[in] visibility - Infobar visibility
- * @param[in] color - Infobar color
- * @param[in] transparency - Infobar transparency
- *
- * @return 0 on success, < 0 on error.
- *
- */
-int sceAppMgrSetInfobarState(SceAppMgrInfoBarVisibility visibility, SceAppMgrInfoBarColor color, SceAppMgrInfoBarTransparency transparency);
-
-/**
- * Load and start a SELF executable
- *
- * @param[in] appPath - Path of the SELF file
- * @param[in] argv - Args to pass to SELF module_start
- * @param[in] optParam - Optional params
- *
- * @return 0 on success, < 0 on error.
- *
- * @note SELF file must be located in app0: partition.
- */
-int sceAppMgrLoadExec(const char *appPath, char * const argv[],
- const SceAppMgrExecOptParam *optParam);
-
-/**
* Start an application by URI
*
* @param[in] flags - Must be 0x20000