Remove some unnecessary casts
[openal-soft.git] / alc / alconfig.h
blobe7daac28ef93782245375f4ad93259835f2c4b41
1 #ifndef ALCONFIG_H
2 #define ALCONFIG_H
4 #include <optional>
5 #include <string>
6 #include <string_view>
9 void ReadALConfig();
11 bool GetConfigValueBool(const std::string_view devName, const std::string_view blockName,
12 const std::string_view keyName, bool def);
14 std::optional<std::string> ConfigValueStr(const std::string_view devName,
15 const std::string_view blockName, const std::string_view keyName);
16 std::optional<int> ConfigValueInt(const std::string_view devName, const std::string_view blockName,
17 const std::string_view keyName);
18 std::optional<unsigned int> ConfigValueUInt(const std::string_view devName,
19 const std::string_view blockName, const std::string_view keyName);
20 std::optional<float> ConfigValueFloat(const std::string_view devName,
21 const std::string_view blockName, const std::string_view keyName);
22 std::optional<bool> ConfigValueBool(const std::string_view devName,
23 const std::string_view blockName, const std::string_view keyName);
25 #endif /* ALCONFIG_H */