summaryrefslogtreecommitdiff
path: root/include/user/registrymgr.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/user/registrymgr.h')
-rw-r--r--include/user/registrymgr.h69
1 files changed, 66 insertions, 3 deletions
diff --git a/include/user/registrymgr.h b/include/user/registrymgr.h
index cc363b5..a85a56b 100644
--- a/include/user/registrymgr.h
+++ b/include/user/registrymgr.h
@@ -59,11 +59,11 @@ int sceRegMgrSetKeyBin(const char *category, const char *name, void *buf, int si
*
* @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
+ * @param value - Value to set to
*
* @return 0 on success, < 0 on error
*/
-int sceRegMgrSetKeyInt(const char* category, const char* name, int buf);
+int sceRegMgrSetKeyInt(const char* category, const char* name, int value);
/**
* Set a key's information by category and name
@@ -131,7 +131,6 @@ int sceRegMgrSystemParamGetInt(const int id, int* buf);
*/
int sceRegMgrSystemParamGetStr(const int id, char* buf, const int size);
-
/**
* Get the registry version
*
@@ -142,6 +141,70 @@ int sceRegMgrSystemParamGetStr(const int id, char* buf, const int size);
*/
int sceRegMgrGetRegVersion(int version, char* buf);
+/**
+ * Get binary registry key by id
+ *
+ * @param id - The id of the key
+ * @param buf[out] - Pointer to a buffer
+ * @param size - The size of the buffer
+ *
+ * @return 0 on success, < 0 on error
+ */
+SceInt32 sceRegMgrUtilityGetBin(SceUInt32 id, void *buf, SceSize size);
+
+/**
+ * Get integer registry key by id
+ *
+ * @param id - The id of the key
+ * @param buf[out] - Pointer to a buffer
+ *
+ * @return 0 on success, < 0 on error
+ */
+SceInt32 sceRegMgrUtilityGetInt(SceUInt32 id, SceInt32 *buf);
+
+/**
+ * Get char array registry key by id
+ *
+ * @param id - The id of the key
+ * @param buf[out] - Pointer to a buffer
+ * @param size - The size of the buffer
+ *
+ * @return 0 on success, < 0 on error
+ */
+SceInt32 sceRegMgrUtilityGetStr(SceUInt32 id, char *buf, SceSize size);
+
+/**
+ * Set binary registry key by id
+ *
+ * @param id - The id of the key
+ * @param buf - Pointer to a buffer
+ * @param size - The size of the buffer
+ *
+ * @return 0 on success, < 0 on error
+ */
+SceInt32 sceRegMgrUtilitySetBin(SceUInt32 id, const void *buf, SceSize size);
+
+
+/**
+ * Set integer registry key by id
+ *
+ * @param id - The id of the key
+ * @param val - Value to set
+ *
+ * @return 0 on success, < 0 on error
+ */
+SceInt32 sceRegMgrUtilitySetInt(SceUInt32 id, SceInt32 val);
+
+/**
+ * Set char array registry key by id
+ *
+ * @param id - The id of the key
+ * @param buf - Pointer to a buffer
+ * @param size - The size of the buffer
+ *
+ * @return 0 on success, < 0 on error
+ */
+SceInt32 sceRegMgrUtilitySetStr(SceUInt32 id, const char *buf, SceSize size);
#ifdef __cplusplus
}