PSP2SDK
dirty-f9e4f2d
The free SDK for PSP2
|
00001 00012 #ifndef _PSP2_APPMGR_H_ 00013 #define _PSP2_APPMGR_H_ 00014 00015 #include <psp2/types.h> 00016 00017 #ifdef __cplusplus 00018 extern "C" { 00019 #endif 00020 00021 enum { 00023 SCE_APPMGR_ERROR_BUSY = 0x80802000, 00024 00026 SCE_APPMGR_ERROR_STATE = 0x80802013, 00027 00029 SCE_APPMGR_ERROR_NULL_POINTER = 0x80802016, 00030 00032 SCE_APPMGR_ERROR_INVALID = 0x8080201a, 00033 00035 SCE_APPMGR_ERROR_INVALID_SELF_PATH = 0x8080201e, 00036 00038 SCE_APPMGR_ERROR_TOO_LONG_ARGV = 0x8080201d 00039 }; 00040 00041 enum { 00042 SCE_APPMGR_SYSTEMEVENT_ON_RESUME = 0x10000003, 00043 SCE_APPMGR_SYSTEMEVENT_ON_STORE_PURCHASE = 0x10000004, 00044 SCE_APPMGR_SYSTEMEVENT_ON_NP_MESSAGE_ARRIVED = 0x10000005, 00045 SCE_APPMGR_SYSTEMEVENT_ON_STORE_REDEMPTION = 0x10000006, 00046 }; 00047 00048 enum { 00049 SCE_APPMGR_INFOBAR_VISIBILITY_INVISIBLE = 0, 00050 SCE_APPMGR_INFOBAR_VISIBILITY_VISIBLE = 1 00051 }; 00052 00053 enum { 00054 SCE_APPMGR_INFOBAR_COLOR_BLACK = 0, 00055 SCE_APPMGR_INFOBAR_COLOR_WHITE = 1 00056 }; 00057 00058 enum { 00059 SCE_APPMGR_INFOBAR_TRANSPARENCY_OPAQUE = 0, 00060 SCE_APPMGR_INFOBAR_TRANSPARENCY_TRANSLUCENT = 1 00061 }; 00062 00063 typedef struct SceAppMgrSystemEvent { 00064 int systemEvent; 00065 uint8_t reserved[60]; 00066 } SceAppMgrSystemEvent; 00067 00068 typedef struct SceAppMgrAppState SceAppMgrAppState; // Missing struct 00069 typedef struct SceAppMgrExecOptParam SceAppMgrExecOptParam; // Missing struct 00070 00071 #define SCE_APPMGR_MAX_APP_NAME_LENGTH (31) 00072 00073 int _sceAppMgrGetAppState(SceAppMgrAppState *appState, uint32_t len, uint32_t version); 00074 00081 int sceAppMgrRecieveSystemEvent(SceAppMgrSystemEvent *systemEvent); 00082 00084 int sceAppMgrAcquireBgmPort(void); 00085 00087 int sceAppMgrReleaseBgmPort(void); 00088 00090 int sceAppMgrSetInfobarState(int visibility, int color, int transparency); 00091 00092 typedef struct sceAppMgrLoadExecOptParam { 00093 int reserved[256 / 4]; 00094 } sceAppMgrLoadExecOptParam; 00095 00096 int sceAppMgrLoadExec(const char *appPath, char * const argv[], 00097 const SceAppMgrExecOptParam *optParam); 00098 00099 #ifdef __cplusplus 00100 } 00101 #endif 00102 00103 #endif /* _PSP2_APPMGR_H_ */