Move the config function declarations to their own header

And rename alcConfig.c to alconfig.c for consistency.
This commit is contained in:
Chris Robinson 2018-01-11 07:56:54 -08:00
parent 81b13f78ea
commit 8aa9e35f8c
15 changed files with 30 additions and 11 deletions

View File

@ -40,6 +40,7 @@
#include "mastering.h"
#include "bformatdec.h"
#include "alu.h"
#include "alconfig.h"
#include "cpu_caps.h"
#include "compat.h"

View File

@ -38,6 +38,7 @@
#endif
#include "alMain.h"
#include "alconfig.h"
#include "compat.h"
#include "bool.h"

17
Alc/alconfig.h Normal file
View File

@ -0,0 +1,17 @@
#ifndef ALCONFIG_H
#define ALCONFIG_H
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);
#endif /* ALCONFIG_H */

View File

@ -26,6 +26,7 @@
#include "alMain.h"
#include "alu.h"
#include "alconfig.h"
#include "threads.h"
#include "compat.h"

View File

@ -26,6 +26,7 @@
#include "alMain.h"
#include "alu.h"
#include "alconfig.h"
#include "threads.h"
#include "compat.h"

View File

@ -35,6 +35,7 @@
#include "alMain.h"
#include "alu.h"
#include "alconfig.h"
#include "threads.h"
#include "compat.h"

View File

@ -26,6 +26,7 @@
#include "alMain.h"
#include "alu.h"
#include "alconfig.h"
#include "compat.h"
#include "backends/base.h"

View File

@ -25,6 +25,7 @@
#include "alMain.h"
#include "alu.h"
#include "alconfig.h"
#include "threads.h"
#include "compat.h"

View File

@ -34,6 +34,7 @@
#include "alMain.h"
#include "alu.h"
#include "alconfig.h"
#include "threads.h"
#include "compat.h"

View File

@ -27,6 +27,7 @@
#include "alMain.h"
#include "alu.h"
#include "alconfig.h"
#include "threads.h"
#include "compat.h"

View File

@ -30,6 +30,7 @@
#include "alu.h"
#include "bformatdec.h"
#include "hrtf.h"
#include "alconfig.h"
#include "compat.h"
#include "almalloc.h"

View File

@ -34,6 +34,7 @@
#include "alListener.h"
#include "alAuxEffectSlot.h"
#include "alu.h"
#include "alconfig.h"
#include "cpu_caps.h"
#include "mixer_defs.h"

View File

@ -29,6 +29,7 @@
#include "alMain.h"
#include "alAuxEffectSlot.h"
#include "alu.h"
#include "alconfig.h"
#include "bool.h"
#include "ambdec.h"
#include "bformatdec.h"

View File

@ -713,7 +713,7 @@ SET(OPENAL_OBJS OpenAL32/alAuxEffectSlot.c
)
SET(ALC_OBJS Alc/ALc.c
Alc/ALu.c
Alc/alcConfig.c
Alc/alconfig.c
Alc/alcRing.c
Alc/bs2b.c
Alc/converter.c

View File

@ -850,16 +850,6 @@ size_t ll_ringbuffer_write(ll_ringbuffer_t *rb, const char *src, size_t cnt);
void ll_ringbuffer_write_advance(ll_ringbuffer_t *rb, size_t cnt);
size_t ll_ringbuffer_write_space(const ll_ringbuffer_t *rb);
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);
void SetRTPriority(void);