Added sceKernelGetFreeMemorySize prototype.
@@ -31,6 +31,13 @@ typedef struct SceKernelAllocMemBlockOpt {
int reserved[10];
} SceKernelAllocMemBlockOpt;
+typedef struct SceKernelFreeMemorySizeInfo {
+ int size; //!< sizeof(SceKernelFreeMemorySizeInfo)
+ int size_user; //!< Free memory size for *_USER_RW memory
+ int size_cdram; //!< Free memory size for USER_CDRAM_RW memory
+ int size_phycont; //!< Free memory size for USER_MAIN_PHYCONT_*_RW memory
+} SceKernelFreeMemorySizeInfo;
+
typedef enum SceKernelModel {
SCE_KERNEL_MODEL_VITA = 0x10000,
SCE_KERNEL_MODEL_VITATV = 0x20000
@@ -105,14 +112,22 @@ int sceKernelCloseMemBlock(SceUID uid);
*
* @return A value from SCE_KERNEL_MODEL
*/
-int sceKernelGetModelForCDialog();
+int sceKernelGetModelForCDialog(void);
/***
* Get the model number of the device
*
* @return A value from SCE_KERNEL_MODEL
*/
-int sceKernelGetModel();
+int sceKernelGetModel(void);
+
+/***
+ * Get free memory size in bytes
+ *
+ * @param[out] info - Returned free memory size for different kind of memory block types
+ * @return 0 on success, < 0 on error.
+*/
+int sceKernelGetFreeMemorySize(SceKernelFreeMemorySizeInfo info);
#ifdef __cplusplus
}
