#ifndef _PSP2_REGISTRYMGR_H_ #define _PSP2_REGISTRYMGR_H_ #include #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, SceSize 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, SceSize 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, SceSize 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, SceSize size); #ifdef __cplusplus } #endif #endif /* _PSP2_REGISTRYMGR_H_ */