openal-soft/Alc/alconfig.h

19 lines
910 B
C
Raw Normal View History

#ifndef ALCONFIG_H
#define ALCONFIG_H
2019-06-30 12:00:10 -07:00
#include "aloptional.h"
2018-10-28 17:14:32 -07:00
2019-06-10 21:45:33 -07:00
void ReadALConfig();
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);
2019-06-30 12:00:10 -07:00
al::optional<int> ConfigValueInt(const char *devName, const char *blockName, const char *keyName);
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 */