mirror of
https://github.com/IllusionMan1212/vitasdk-odin.git
synced 2026-10-24 02:12:38 +00:00
added kernel libraries bindings and cleaned up todos
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
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 ---
|
||||
}
|
||||
Reference in New Issue
Block a user