summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrincess of Sleeping2018-12-15 18:15:36 +0900
committerGitHub2018-12-15 18:15:36 +0900
commit5c2f798e0c594ce1e57b5ca6a3af2d46ad8b7836 (patch)
tree64db2e393fd3494d557fbd10fc858b0d049db28d
parentUpdate utils.h (diff)
downloadvds-libraries-5c2f798e0c594ce1e57b5ca6a3af2d46ad8b7836.tar.gz
Create idstorage.h
-rw-r--r--include/kernel/idstorage.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/kernel/idstorage.h b/include/kernel/idstorage.h
new file mode 100644
index 0000000..3f65799
--- /dev/null
+++ b/include/kernel/idstorage.h
@@ -0,0 +1,24 @@
+#ifndef _PSP2_KERNEL_IDSTORAGE_H_
+#define _PSP2_KERNEL_IDSTORAGE_H_
+
+#include <psp2kern/types.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @param[in] leafnum - 0x0 ~ 0x80 / leafnum > 0x80 = error
+ * @param[out] buf - Leaf data
+ * @param[in] buf_size - set 0x200 / buf_size != 0x200 = 0x800F090D
+ *
+ * @return 0 on success, < 0 on error.
+ */
+int sceIdStorageReadLeaf(int leafnum, void *buf, int buf_size);
+int sceIdStorageWriteLeaf(int leafnum, const void *buf, int buf_size);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _PSP2_KERNEL_IDSTORAGE_H_ */