diff options
author | Chris Robinson <[email protected]> | 2018-01-11 07:56:54 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-01-11 07:56:54 -0800 |
commit | 8aa9e35f8c743c1336142a0a49eaeee19a6d33d3 (patch) | |
tree | bc210336ae8961164a6b3e33d25fddccf7b50fcb /Alc/alconfig.h | |
parent | 81b13f78ea27aaa6704457124931148244fd1614 (diff) |
Move the config function declarations to their own header
And rename alcConfig.c to alconfig.c for consistency.
Diffstat (limited to 'Alc/alconfig.h')
-rw-r--r-- | Alc/alconfig.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Alc/alconfig.h b/Alc/alconfig.h new file mode 100644 index 00000000..1e493e2e --- /dev/null +++ b/Alc/alconfig.h @@ -0,0 +1,17 @@ +#ifndef ALCONFIG_H +#define ALCONFIG_H + +void ReadALConfig(void); +void FreeALConfig(void); + +int ConfigValueExists(const char *devName, const char *blockName, const char *keyName); +const char *GetConfigValue(const char *devName, const char *blockName, const char *keyName, const char *def); +int GetConfigValueBool(const char *devName, const char *blockName, const char *keyName, int def); + +int ConfigValueStr(const char *devName, const char *blockName, const char *keyName, const char **ret); +int ConfigValueInt(const char *devName, const char *blockName, const char *keyName, int *ret); +int ConfigValueUInt(const char *devName, const char *blockName, const char *keyName, unsigned int *ret); +int ConfigValueFloat(const char *devName, const char *blockName, const char *keyName, float *ret); +int ConfigValueBool(const char *devName, const char *blockName, const char *keyName, int *ret); + +#endif /* ALCONFIG_H */ |