openal-soft/Alc/alconfig.h

28 lines
1.0 KiB
C
Raw Normal View History

#ifndef ALCONFIG_H
#define ALCONFIG_H
2018-10-28 17:14:32 -07:00
#ifdef __cplusplus
2018-11-13 02:15:10 -08:00
#define NOEXCEPT noexcept
2018-10-28 17:14:32 -07:00
extern "C" {
2018-11-13 02:15:10 -08:00
#else
#define NOEXCEPT
2018-10-28 17:14:32 -07:00
#endif
2018-11-13 02:15:10 -08:00
void ReadALConfig(void) NOEXCEPT;
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);
int ConfigValueInt(const char *devName, const char *blockName, const char *keyName, int *ret);
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);
2018-10-28 17:14:32 -07:00
#ifdef __cplusplus
} // extern "C"
#endif
#endif /* ALCONFIG_H */