vitasdk
Documentation of the vitasdk
appmgr.h File Reference
#include <psp2/types.h>
#include <psp2/apputil.h>

Go to the source code of this file.

Data Structures

struct  SceAppMgrSystemEvent
 
struct  SceAppMgrSaveDataData
 
struct  SceAppMgrSaveDataDataDelete
 
struct  SceAppMgrSaveDataSlot
 
struct  SceAppMgrSaveDataSlotDelete
 
struct  SceAppMgrAppState
 
struct  SceAppMgrBudgetInfo
 
struct  sceAppMgrLoadExecOptParam
 
struct  SceAppMgrCoredumpState
 

Macros

#define SCE_APPMGR_MAX_APP_NAME_LENGTH   (31)
 

Typedefs

typedef struct SceAppMgrExecOptParam SceAppMgrExecOptParam
 
typedef struct SceAppMgrLaunchAppOptParam SceAppMgrLaunchAppOptParam
 

Enumerations

enum  SceAppMgrErrorCode {
  SCE_APPMGR_ERROR_BUSY = 0x80802000 , SCE_APPMGR_ERROR_STATE = 0x80802013 , SCE_APPMGR_ERROR_NULL_POINTER = 0x80802016 , SCE_APPMGR_ERROR_INVALID = 0x8080201A ,
  SCE_APPMGR_ERROR_TOO_LONG_ARGV = 0x8080201D , SCE_APPMGR_ERROR_INVALID_SELF_PATH = 0x8080201E , SCE_APPMGR_ERROR_NOEXEC = 0x8080201F , SCE_APPMGR_ERROR_BGM_PORT_BUSY = 0x80803000
}
 
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 }
 
enum  SceAppMgrInfoBarVisibility { SCE_APPMGR_INFOBAR_VISIBILITY_INVISIBLE = 0 , SCE_APPMGR_INFOBAR_VISIBILITY_VISIBLE = 1 }
 
enum  SceAppMgrInfoBarColor { SCE_APPMGR_INFOBAR_COLOR_BLACK = 0 , SCE_APPMGR_INFOBAR_COLOR_WHITE = 1 }
 
enum  SceAppMgrInfoBarTransparency { SCE_APPMGR_INFOBAR_TRANSPARENCY_OPAQUE = 0 , SCE_APPMGR_INFOBAR_TRANSPARENCY_TRANSLUCENT = 1 }
 
enum  SceAppMgrApplicationMode { SCE_APPMGR_APPLICATION_MODE_A = 2 , SCE_APPMGR_APPLICATION_MODE_B = 3 , SCE_APPMGR_APPLICATION_MODE_C = 4 }
 

Functions

int _sceAppMgrSaveDataDataSave (SceAppMgrSaveDataData *data)
 Save data on savedata0: partition. More...
 
int _sceAppMgrSaveDataDataRemove (SceAppMgrSaveDataDataDelete *data)
 Remove data on savedata0: partition. More...
 
int _sceAppMgrSaveDataSlotCreate (SceAppMgrSaveDataSlot *data)
 Create a savedata slot. More...
 
int _sceAppMgrSaveDataSlotGetParam (SceAppMgrSaveDataSlot *data)
 Get current param of a savedata slot. More...
 
int _sceAppMgrSaveDataSlotSetParam (SceAppMgrSaveDataSlot *data)
 Set current param of a savedata slot. More...
 
int _sceAppMgrSaveDataSlotDelete (SceAppMgrSaveDataSlotDelete *data)
 Delete a savedata slot. More...
 
int sceAppMgrGetIdByName (SceUID *pid, const char *name)
 Get Process ID by Title ID. More...
 
int sceAppMgrGetNameById (SceUID pid, char *name)
 Get Title ID by Process ID. More...
 
int sceAppMgrDestroyOtherApp (void)
 Destroy other apps. More...
 
int sceAppMgrDestroyAppByName (const char *name)
 Destroy an application by Title ID. More...
 
int sceAppMgrDestroyAppByAppId (SceUID appId)
 Destroy an application by Application ID. More...
 
SceUID sceAppMgrGetProcessIdByAppIdForShell (SceUID appId)
 Get PID of an application for Shell. More...
 
int sceAppMgrGetRunningAppIdListForShell (SceUID *appIds, int count)
 Get a list of running applications. More...
 
int _sceAppMgrGetAppState (SceAppMgrAppState *appState, SceSize len, uint32_t version)
 Get an application state. More...
 
int sceAppMgrReceiveSystemEvent (SceAppMgrSystemEvent *systemEvent)
 Receive system event. More...
 
int sceAppMgrGetAppParam (char *param)
 Copies app param to an array. More...
 
int sceAppMgrAcquireBgmPort (void)
 Obtains the BGM port, even when it is not in front. More...
 
int sceAppMgrReleaseBgmPort (void)
 Release acquired BGM port. More...
 
int sceAppMgrSetInfobarState (SceAppMgrInfoBarVisibility visibility, SceAppMgrInfoBarColor color, SceAppMgrInfoBarTransparency transparency)
 Set infobar state. More...
 
int sceAppMgrLoadExec (const char *appPath, char *const argv[], const SceAppMgrExecOptParam *optParam)
 Load and start a SELF executable. More...
 
int sceAppMgrLaunchAppByUri (int flags, const char *uri)
 Start an application by URI. More...
 
int sceAppMgrLaunchAppByName2 (const char *name, const char *param, SceAppMgrLaunchAppOptParam *optParam)
 Start an application by Title ID. More...
 
SceUID sceAppMgrLaunchAppByName2ForShell (const char *name, const char *param, SceAppMgrLaunchAppOptParam *optParam)
 Start an application by Title ID for Shell. More...
 
int sceAppMgrGameDataMount (const char *path, int unk1, int unk2, const char *mount_point)
 Mount game data. More...
 
int sceAppMgrAppDataMount (int id, const char *mount_point)
 Mount application data. More...
 
int sceAppMgrAppDataMountById (int id, const char *titleid, const char *mount_point)
 Mount application data by Title ID. More...
 
int sceAppMgrAppParamGetString (int pid, int param, char *string, SceSize length)
 Get application params from SFO descriptor. More...
 
int sceAppMgrGetDevInfo (const char *dev, uint64_t *max_size, uint64_t *free_size)
 Get device info. More...
 
int sceAppMgrMmsMount (int id, const char *mount_point)
 Mount application data (PSPEmu) More...
 
int sceAppMgrPspSaveDataRootMount (const char *mount_point)
 Mount PSPEmu virtual memory stick. More...
 
int sceAppMgrWorkDirMount (int id, const char *mount_point)
 Mount working directory. More...
 
int sceAppMgrWorkDirMountById (int id, const char *titleid, const char *mount_point)
 Mount working directory by Title ID. More...
 
int sceAppMgrUmount (const char *mount_point)
 Unmount a mountpoint. More...
 
int sceAppMgrConvertVs0UserDrivePath (char *path, char *mount_point, int unk)
 Convert vs0 path string to a new one usable by applications. More...
 
int sceAppMgrGetRawPath (char *path, char *mount_point, char *unk)
 Get raw path for a given path. More...
 
int _sceAppMgrGetRawPath (char *path, char *resolved_path, int resolved_path_size, char unk[16])
 Resolve a path to the corresponding true path (uses ksceFiosKernelOverlayResolveSync underneath). More...
 
int _sceAppMgrGetRawPathOfApp0ByAppIdForShell (int appId, char resolved_path[292])
 Get the real/resolved path of app0: (where it's actually mounted) More...
 
int sceAppMgrGetBudgetInfo (SceAppMgrBudgetInfo *info)
 Get memory budget info for a running system application. More...
 
int _sceAppMgrGetCoredumpStateForShell (SceAppMgrCoredumpState *state)
 Get current coredump state for shell. More...