2018-01-11 07:56:54 -08:00
|
|
|
#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();
|
2018-01-11 07:56:54 -08:00
|
|
|
|
|
|
|
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);
|
2018-01-11 07:56:54 -08:00
|
|
|
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 */
|