openal-soft/Alc/alconfig.h

21 lines
946 B
C
Raw Normal View History

#ifndef ALCONFIG_H
#define ALCONFIG_H
2019-06-30 16:15:15 -07:00
#include <string>
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);
2019-06-30 16:15:15 -07:00
al::optional<std::string> ConfigValueStr(const char *devName, const char *blockName, const char *keyName);
2019-06-30 12:00:10 -07:00
al::optional<int> ConfigValueInt(const char *devName, const char *blockName, const char *keyName);
2019-06-30 13:04:23 -07:00
al::optional<unsigned int> ConfigValueUInt(const char *devName, const char *blockName, const char *keyName);
al::optional<float> ConfigValueFloat(const char *devName, const char *blockName, const char *keyName);
al::optional<bool> ConfigValueBool(const char *devName, const char *blockName, const char *keyName);
#endif /* ALCONFIG_H */