summaryrefslogtreecommitdiff
path: root/include/user/registrymgr.h
diff options
context:
space:
mode:
authorJoel162017-05-11 12:02:06 -0800
committerdevnoname1202017-05-11 22:02:06 +0200
commited5ed15766f0a069cd0b6ff18e21c78f1d924d7e (patch)
tree42afaaa521f00c33acef8a3082ce44e538ef9dc1 /include/user/registrymgr.h
parentFixed a couple function descriptions and added a few missing functions in Sce... (diff)
downloadvds-libraries-ed5ed15766f0a069cd0b6ff18e21c78f1d924d7e.tar.gz
Add sceRegMgr functions (#169)
Add sceRegMgr functions
Diffstat (limited to 'include/user/registrymgr.h')
-rw-r--r--include/user/registrymgr.h84
1 files changed, 84 insertions, 0 deletions
diff --git a/include/user/registrymgr.h b/include/user/registrymgr.h
new file mode 100644
index 0000000..96565b7
--- /dev/null
+++ b/include/user/registrymgr.h
@@ -0,0 +1,84 @@
+#ifndef _PSP2_REGISTRYMGR_H_
+#define _PSP2_REGISTRYMGR_H_
+
+#include <psp2/types.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * 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
+ */
+int sceRegMgrGetKeyBin(const char *category, const char *name, void *buf, int size);
+
+/**
+ * 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
+ */
+int sceRegMgrGetKeyInt(const char* category, const char* name, int* buf);
+
+/**
+ * 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
+ */
+int sceRegMgrGetKeyStr(const char* category, const char* name, char* buf, const int size);
+
+/**
+ * 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
+ */
+int sceRegMgrSetKeyBin(const char *category, const char *name, void *buf, int size);
+
+/**
+ * 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
+ */
+int sceRegMgrSetKeyInt(const char* category, const char* name, int buf);
+
+/**
+ * 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
+ */
+int sceRegMgrSetKeyStr(const char* category, const char* name, char* buf, const int size);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _PSP2_REGISTRYMGR_H_ */