diff options
author | Princess of Sleeping | 2018-12-15 18:15:36 +0900 |
---|---|---|
committer | GitHub | 2018-12-15 18:15:36 +0900 |
commit | 5c2f798e0c594ce1e57b5ca6a3af2d46ad8b7836 (patch) | |
tree | 64db2e393fd3494d557fbd10fc858b0d049db28d /include/kernel/idstorage.h | |
parent | Update utils.h (diff) | |
download | vds-libraries-5c2f798e0c594ce1e57b5ca6a3af2d46ad8b7836.tar.gz |
Create idstorage.h
Diffstat (limited to 'include/kernel/idstorage.h')
-rw-r--r-- | include/kernel/idstorage.h | 24 |
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_ */ |