mirror of
https://github.com/IllusionMan1212/vitasdk-odin.git
synced 2026-10-24 02:12:38 +00:00
initial
This commit is contained in:
@@ -0,0 +1,143 @@
|
||||
package registrymgr
|
||||
|
||||
import "core:c"
|
||||
|
||||
foreign import registrymgr "system:SceRegistryMgr_stub"
|
||||
|
||||
@(link_prefix = "sceRegMgr")
|
||||
foreign registrymgr {
|
||||
/**
|
||||
* Get a key's information by category and name
|
||||
*
|
||||
* @param category - The path to the directory to be opened (e.g. /CONFIG/SYSTEM)
|
||||
* @param name - Name of the key
|
||||
* @param buf - Pointer to a buffer to hold the value
|
||||
* @param size - The size of the buffer
|
||||
*
|
||||
* @return 0 on success, < 0 on error
|
||||
*/
|
||||
GetKeyBin :: proc(category: cstring, name: cstring, buf: rawptr, size: c.int) -> c.int ---
|
||||
|
||||
/**
|
||||
* Get a key's information by category and name
|
||||
*
|
||||
* @param category - The path to the directory to be opened (e.g. /CONFIG/SYSTEM)
|
||||
* @param name - Name of the key
|
||||
* @param buf - Pointer to a int buffer to hold the value
|
||||
*
|
||||
* @return 0 on success, < 0 on error
|
||||
*/
|
||||
GetKeyInt :: proc(category: cstring, name: cstring, buf: ^c.int) -> c.int ---
|
||||
|
||||
/**
|
||||
* Get a key's information by category and name
|
||||
*
|
||||
* @param category - The path to the directory to be opened (e.g. /CONFIG/SYSTEM)
|
||||
* @param name - Name of the key
|
||||
* @param buf - Pointer to a char buffer to hold the value
|
||||
* @param size - The size of the buffer
|
||||
*
|
||||
* @return 0 on success, < 0 on error
|
||||
*/
|
||||
GetKeyStr :: proc(category: cstring, name: cstring, buf: [^]c.char, size: c.int) -> c.int ---
|
||||
|
||||
/**
|
||||
* Set a key's information by category and name
|
||||
*
|
||||
* @param category - The path to the directory to be opened (e.g. /CONFIG/SYSTEM)
|
||||
* @param name - Name of the key
|
||||
* @param buf - Pointer to a buffer to hold the value
|
||||
* @param size - The size of the buffer
|
||||
*
|
||||
* @return 0 on success, < 0 on error
|
||||
*/
|
||||
SetKeyBin :: proc(category: cstring, name: cstring, buf: rawptr, size: c.int) -> c.int ---
|
||||
|
||||
/**
|
||||
* Set a key's information by category and name
|
||||
*
|
||||
* @param category - The path to the directory to be opened (e.g. /CONFIG/SYSTEM)
|
||||
* @param name - Name of the key
|
||||
* @param buf - Pointer to an int buffer to hold the value
|
||||
*
|
||||
* @return 0 on success, < 0 on error
|
||||
*/
|
||||
SetKeyInt :: proc(category: cstring, name: cstring, buf: c.int) -> c.int ---
|
||||
|
||||
/**
|
||||
* Set a key's information by category and name
|
||||
*
|
||||
* @param category - The path to the directory to be opened (e.g. /CONFIG/SYSTEM)
|
||||
* @param name - Name of the key
|
||||
* @param buf - Pointer to a char buffer to hold the value
|
||||
* @param size - The size of the buffer
|
||||
*
|
||||
* @return 0 on success, < 0 on error
|
||||
*/
|
||||
SetKeyStr :: proc(category: cstring, name: cstring, buf: [^]c.char, size: c.int) -> c.int ---
|
||||
|
||||
/**
|
||||
* Get all keys' initial information by category (from os0:kd/registry.db0)
|
||||
*
|
||||
* @param category - The path to the directory to be opened (e.g. /CONFIG/SYSTEM)
|
||||
* @param buf[out] - Pointer to a char buffer to hold the values
|
||||
* @param elements_number - The number of elements of the buffer
|
||||
*
|
||||
* @return 0 on success, < 0 on error
|
||||
*/
|
||||
GetInitVals :: proc(category: cstring, buf: [^]c.char, elements_number: c.int) -> c.int ---
|
||||
|
||||
/**
|
||||
* Get all keys' information by category
|
||||
*
|
||||
* @param category - The path to the directory to be opened (e.g. /CONFIG/SYSTEM)
|
||||
* @param buf[out] - Pointer to a char buffer to hold the values
|
||||
* @param elements_number - The number of elements of the buffer
|
||||
*
|
||||
* @return 0 on success, < 0 on error
|
||||
*/
|
||||
GetKeys :: proc(category: cstring, buf: [^]c.char, elements_number: c.int) -> c.int ---
|
||||
|
||||
/**
|
||||
* Set all keys' information by category
|
||||
*
|
||||
* @param category - The path to the directory to be opened (e.g. /CONFIG/SYSTEM)
|
||||
* @param buf[out] - Pointer to a char buffer that holds the values
|
||||
* @param elements_number - The number of elements of the buffer
|
||||
*
|
||||
* @return 0 on success, < 0 on error
|
||||
*/
|
||||
SetKeys :: proc(category: cstring, buf: [^]c.char, elements_number: c.int) -> c.int ---
|
||||
|
||||
/**
|
||||
* Get a system param key's information by id
|
||||
*
|
||||
* @param id - The id of the key
|
||||
* @param buf[out] - Pointer to an int to hold the value
|
||||
*
|
||||
* @return 0 on success, < 0 on error
|
||||
*/
|
||||
SystemParamGetInt :: proc(id: c.int, buf: ^c.int) -> c.int ---
|
||||
|
||||
/**
|
||||
* Get a system param key's information by id
|
||||
*
|
||||
* @param id - The id of the key
|
||||
* @param buf[out] - Pointer to a char buffer to hold the value
|
||||
* @param size - The size of the buffer
|
||||
*
|
||||
* @return 0 on success, < 0 on error
|
||||
*/
|
||||
SystemParamGetStr :: proc(id: c.int, buf: [^]c.char, size: c.int) -> c.int ---
|
||||
|
||||
|
||||
/**
|
||||
* Get the registry version
|
||||
*
|
||||
* @param id - The id of the key
|
||||
* @param buf[out] - Pointer to a char buffer to hold the value
|
||||
*
|
||||
* @return 0 on success, < 0 on error
|
||||
*/
|
||||
GetRegVersion :: proc(version: c.int, buf: [^]c.char) -> c.int ---
|
||||
}
|
||||
Reference in New Issue
Block a user