diff options
author | devnoname120 | 2018-01-11 21:28:58 +0100 |
---|---|---|
committer | devnoname120 | 2018-01-11 21:34:04 +0100 |
commit | f1050a70c77ab3fda9b93b81ec020463f3ff76d8 (patch) | |
tree | 97cc96b226ea9b979c61b8cc101bde146d9d3078 /include | |
parent | Update registrymgr.h (diff) | |
download | vds-libraries-f1050a70c77ab3fda9b93b81ec020463f3ff76d8.tar.gz |
Address comments of #262
Diffstat (limited to 'include')
-rw-r--r-- | include/user/registrymgr.h | 45 |
1 files changed, 9 insertions, 36 deletions
diff --git a/include/user/registrymgr.h b/include/user/registrymgr.h index fe777b9..cc363b5 100644 --- a/include/user/registrymgr.h +++ b/include/user/registrymgr.h @@ -81,41 +81,40 @@ int sceRegMgrSetKeyStr(const char* category, const char* name, char* buf, const * 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 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 */ -int sceRegMgrGetInitVals(const char* category, char* buffer, const int elements_number); +int sceRegMgrGetInitVals(const char* category, char* buf, 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 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 */ -int sceRegMgrGetKeys(const char* category, char* buffer, const int elements_number); +int sceRegMgrGetKeys(const char* category, char* buf, 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 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 */ -int sceRegMgrSetKeys(const char* category, char* buffer, const int elements_number); +int sceRegMgrSetKeys(const char* category, char* buf, 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 + * @param buf[out] - Pointer to an int to hold the value * * @return 0 on success, < 0 on error */ @@ -125,7 +124,7 @@ 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 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 @@ -137,39 +136,13 @@ 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 + * @param buf[out] - 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 |