diff options
author | GrapheneCt | 2020-07-24 18:05:12 -0400 |
---|---|---|
committer | Reiko Asakura | 2020-07-24 18:05:12 -0400 |
commit | f56fd9889e93b04f3ca3f1a3937cfae5d646a2b8 (patch) | |
tree | e2644d5a4213f14edcf3cfe198a9f33479296890 /include | |
parent | Add SceIofilemgr function prototypes (diff) | |
download | vds-libraries-f56fd9889e93b04f3ca3f1a3937cfae5d646a2b8.tar.gz |
Add SceSharedFb protoypes
SceSharedFbInfo not added due to too many unknown fields. For reference
see:
https://github.com/GrapheneCt/libvita2d_sys
Diffstat (limited to 'include')
-rw-r--r-- | include/user/appmgr.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/user/appmgr.h b/include/user/appmgr.h index b55859a..c6027c8 100644 --- a/include/user/appmgr.h +++ b/include/user/appmgr.h @@ -1,6 +1,7 @@ #ifndef _PSP2_APPMGR_H_ #define _PSP2_APPMGR_H_ +#include <psp2/scebase.h> #include <psp2/types.h> #include <psp2/apputil.h> @@ -8,6 +9,8 @@ extern "C" { #endif +#define _SCE_APPMGR_VERSION (SCE_PSP2_SDK_VERSION & 0xffff0000) + typedef enum SceAppMgrErrorCode { SCE_APPMGR_ERROR_BUSY = 0x80802000, //!< Busy SCE_APPMGR_ERROR_STATE = 0x80802013, //!< Invalid state @@ -524,6 +527,27 @@ int _sceAppMgrGetRawPathOfApp0ByAppIdForShell(int appId, char resolved_path[292] */ int sceAppMgrGetBudgetInfo(SceAppMgrBudgetInfo *info); +/** + * Shared Framebuffer + */ + +typedef struct SceSharedFbInfo SceSharedFbInfo; + +SceUID _sceSharedFbOpen(int index, SceUInt32 buildVersion); + +static __inline__ +SceUID sceSharedFbOpen(int index, SceUInt32 buildVersion) { + return _sceSharedFbOpen(index, _SCE_APPMGR_VERSION); +} + +int sceSharedFbClose(SceUID fbId); + +int sceSharedFbBegin(SceUID fbId, SceSharedFbInfo *fbInfo); + +int sceSharedFbEnd(SceUID fbId); + +int sceSharedFbGetInfo(SceUID fbId, SceSharedFbInfo *fbInfo); + #ifdef __cplusplus } #endif |