diff options
author | CelesteBlue-dev | 2017-12-20 13:45:06 +0100 |
---|---|---|
committer | devnoname120 | 2018-01-11 21:34:04 +0100 |
commit | 459ecef484feaa729dba69b14d8b6b0818bc4226 (patch) | |
tree | 7de9408686d3220192b3542149557afe4380659d /include/user | |
parent | Documented sysmodule.h. (diff) | |
download | vds-libraries-459ecef484feaa729dba69b14d8b6b0818bc4226.tar.gz |
Update registrymgr.h
Diffstat (limited to 'include/user')
-rw-r--r-- | include/user/registrymgr.h | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/include/user/registrymgr.h b/include/user/registrymgr.h index 96565b7..fe777b9 100644 --- a/include/user/registrymgr.h +++ b/include/user/registrymgr.h @@ -77,6 +77,99 @@ int sceRegMgrSetKeyInt(const char* category, const char* name, int buf); */ int sceRegMgrSetKeyStr(const char* category, const char* name, char* buf, const int size); +/** + * 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 - 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 + */ +int sceRegMgrGetInitVals(const char* category, char* buffer, const int elements_number); + +/** + * Get all keys' information by category + * + * @param category - The path to the directory to be opened (e.g. /CONFIG/SYSTEM) + * @param buf - 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 + */ +int sceRegMgrGetKeys(const char* category, char* buffer, const int elements_number); + +/** + * Set all keys' information by category + * + * @param category - The path to the directory to be opened (e.g. /CONFIG/SYSTEM) + * @param buf - 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 + */ +int sceRegMgrSetKeys(const char* category, char* buffer, const int elements_number); + +/** + * Get a system param key's information by id + * + * @param id - The id 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 + */ +int sceRegMgrSystemParamGetInt(const int id, int* buf); + +/** + * Get a system param key's information by id + * + * @param id - The id 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 + */ +int sceRegMgrSystemParamGetStr(const int id, char* buf, const int size); + + +/** + * Get the registry version + * + * @param id - The id of the key + * @param buf - Pointer to a char buffer to hold the value + * + * @return 0 on success, < 0 on error + */ +int sceRegMgrGetRegVersion(int version, char* buf); + + +/** + * Register a registry callback + * + * @return 0 on success, < 0 on error + */ +int sceRegMgrRegisterCallback(); + +/** + * Add a registry callback + * + * @param unk - unknown (maybe callback_id) + * @param key_path - The path to the key to be callbacked (e.g. "/CONFIG/DATE/date_format") + * + * @return 0 on success, < 0 on error + */ +int sceRegMgrAddRegistryCallback(int unk, const char* key_path); + +/** + * Add a registry callback + * + * @param unk - unknown (maybe callback_id), same value as ::sceRegMgrAddRegistryCallback first argument + * + * @return 0 on success, < 0 on error + */ +int sceRegMgrStartCallback(int unk); + #ifdef __cplusplus } #endif |