diff options
Diffstat (limited to 'alc/alconfig.h')
-rw-r--r-- | alc/alconfig.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/alc/alconfig.h b/alc/alconfig.h index 1eb44405..e7daac28 100644 --- a/alc/alconfig.h +++ b/alc/alconfig.h @@ -3,16 +3,23 @@ #include <optional> #include <string> +#include <string_view> void ReadALConfig(); -bool GetConfigValueBool(const char *devName, const char *blockName, const char *keyName, bool def); +bool GetConfigValueBool(const std::string_view devName, const std::string_view blockName, + const std::string_view keyName, bool def); -std::optional<std::string> ConfigValueStr(const char *devName, const char *blockName, const char *keyName); -std::optional<int> ConfigValueInt(const char *devName, const char *blockName, const char *keyName); -std::optional<unsigned int> ConfigValueUInt(const char *devName, const char *blockName, const char *keyName); -std::optional<float> ConfigValueFloat(const char *devName, const char *blockName, const char *keyName); -std::optional<bool> ConfigValueBool(const char *devName, const char *blockName, const char *keyName); +std::optional<std::string> ConfigValueStr(const std::string_view devName, + const std::string_view blockName, const std::string_view keyName); +std::optional<int> ConfigValueInt(const std::string_view devName, const std::string_view blockName, + const std::string_view keyName); +std::optional<unsigned int> ConfigValueUInt(const std::string_view devName, + const std::string_view blockName, const std::string_view keyName); +std::optional<float> ConfigValueFloat(const std::string_view devName, + const std::string_view blockName, const std::string_view keyName); +std::optional<bool> ConfigValueBool(const std::string_view devName, + const std::string_view blockName, const std::string_view keyName); #endif /* ALCONFIG_H */ |