2024-05-12 16:16:15 +02:00
|
|
|
package idstorage
|
|
|
|
|
|
|
|
|
|
import "core:c"
|
|
|
|
|
import sce "../common"
|
|
|
|
|
|
|
|
|
|
foreign import idstorage "system:SceIdStorageForDriver_stub"
|
|
|
|
|
|
|
|
|
|
foreign idstorage {
|
|
|
|
|
/**
|
|
|
|
|
* @param[in] leafnum - The read target leaf number
|
|
|
|
|
* @param[out] buf - The leaf data buffer pointer, size is 512 byte
|
|
|
|
|
*
|
|
|
|
|
* @return 0 on success, < 0 on error.
|
|
|
|
|
*/
|
2024-05-13 16:04:23 +02:00
|
|
|
ksceIdStorageReadLeaf :: proc(leafnum: sce.Size, buf: rawptr) -> c.int ---
|
2024-05-12 16:16:15 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param[in] leafnum - The write target leaf number
|
|
|
|
|
* @param[in] buf - The leaf data buffer pointer, size is 512 byte
|
|
|
|
|
*
|
|
|
|
|
* @return 0 on success, < 0 on error.
|
|
|
|
|
*
|
|
|
|
|
* note - Writing to leaf requires manufacturing mode.
|
|
|
|
|
*/
|
2024-05-13 16:04:23 +02:00
|
|
|
ksceIdStorageWriteLeaf :: proc(leafnum: sce.Size, buf: rawptr) -> c.int ---
|
2024-05-12 16:16:15 +02:00
|
|
|
}
|