mirror of
https://github.com/IllusionMan1212/vitasdk-odin.git
synced 2026-10-24 02:12:38 +00:00
28 lines
729 B
Odin
28 lines
729 B
Odin
package idstorage
|
|||
|
|
|
||
|
|
import "core:c"
|
||
|
|
import sce "../common"
|
||
|
|
|
||
|
|
foreign import idstorage "system:SceIdStorageForDriver_stub"
|
||
|
|
|
||
|
|
@(link_prefix = "ksceIdStorage")
|
||
|
|
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.
|
||
|
|
*/
|
||
|
|
ReadLeaf :: proc(leafnum: sce.Size, buf: rawptr) -> c.int ---
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @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.
|
||
|
|
*/
|
||
|
|
WriteLeaf :: proc(leafnum: sce.Size, buf: rawptr) -> c.int ---
|
||
|
|
}
|