aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alconfig.h
blob: cb8d87171536a79026417a51c1823e03fea20133 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef ALCONFIG_H
#define ALCONFIG_H

#ifdef __cplusplus
extern "C" {
#endif

void ReadALConfig(void);
void FreeALConfig(void);

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);

#ifdef __cplusplus
} // extern "C"
#endif

#endif /* ALCONFIG_H */