/* Vita Development Suite Libraries */ #ifndef _VDSUITE_USER_VSHBRIDGE_H #define _VDSUITE_USER_VSHBRIDGE_H #include #ifdef __cplusplus extern "C" { #endif /** * Gets real system firmware information. * * @param[out] data - firmware information. */ int _vshSblGetSystemSwVersion(SceKernelFwInfo *data); /** * Gets factory (minimum) firmware version. * * @param[out] minver - factory firmware version. */ int _vshSblAimgrGetSMI(int *minver); int _vshSblAimgrGetConsoleId(char CID[32]); int _vshIoMount(int id, const char *path, int permission, void *extra); /** * @param[in] id - Mount point ID * @param[in] path - Block device path. Can be NULL. * @param[in] permission - 1/RO 2/RW * @param a4 - Unknown, set to 0 * @param a5 - Unknown, set to 0 * @param a6 - Unknown, set to 0 * * @return 0 >= on success, < 0 on error. */ static inline int vshIoMount(int id, const char *path, int permission, int a4, int a5, int a6) { struct { int a4; int a5; int a6; int unused[3]; } extra = {a4, a5, a6, 0, 0, 0}; return _vshIoMount(id, path, permission, &extra); } /** * @param[in] id - Mount point ID * @param[in] force - Set to 1 to force umount * @param[in] unk2 - Unknown, set 0 * @param[in] unk3 - Unknown, set 0 * * @return 0 >= on success, < 0 on error. */ int vshIoUmount(int id, int force, int unk2, int unk3); int vshIdStorageIsDirty(void); int vshIdStorageIsFormatted(void); int vshIdStorageIsReadOnly(void); /** * @param[in] leafnum - 0x0 ~ 0x80 / leafnum > 0x80 = error * @param[out] buf - Leaf data, size is 512 byte * * @return 0 on success, < 0 on error. */ int vshIdStorageReadLeaf(SceSize leafnum, void *buf); /** * @param[in] leafnum - 0x0 ~ 0x80 / leafnum > 0x80 = error * @param[in] buf - Leaf data, size is 512 byte * * @return 0 on success, < 0 on error. */ int vshIdStorageWriteLeaf(SceSize leafnum, const void *buf); /** * Sets the PS button hold time for showing the quick menu. * * @param time - Time in microseconds. * * @return 0 always */ int vshPowerSetPsButtonPushTime(int time); int vshSblAimgrIsCEX(void); int vshSblAimgrIsDEX(void); int vshSblAimgrIsVITA(void); int vshSblAimgrIsGenuineVITA(void); int vshSblAimgrIsDolce(void); int vshSblAimgrIsGenuineDolce(void); int vshSblAimgrIsTest(void); int vshSblAimgrIsTool(void); int vshSblSsIsDevelopmentMode(void); int vshSysconHasWWAN(void); int vshSysconIsDownLoaderMode(void); int vshSysconIsIduMode(void); int vshSysconIsMCEmuCapable(void); int vshSysconIsShowMode(void); int vshSysconIduModeSet(void); int vshSysconIduModeClear(void); int vshSysconShowModeSet(void); int vshSysconShowModeClear(void); int vshMemoryCardGetCardInsertState(void); int vshRemovableMemoryGetCardInsertState(void); #ifdef __cplusplus } #endif #endif /* _VDSUITE_USER_VSHBRIDGE_H */