diff options
author | Chris Robinson <[email protected]> | 2019-06-29 12:16:38 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-06-29 12:16:38 -0700 |
commit | 811d0738fae78946712b17904b5d24c4b4af13ca (patch) | |
tree | 08b9250d151060725a85b4f1cd8518b1915d1b4a /Alc | |
parent | b905a224eece5e6679498fddf46d93874b2fb4af (diff) |
Put some static functions in an anonymous namespace
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/alc.cpp | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/Alc/alc.cpp b/Alc/alc.cpp index 60c7e790..8831cebd 100644 --- a/Alc/alc.cpp +++ b/Alc/alc.cpp @@ -887,40 +887,8 @@ al::vector<ALCcontext*> ContextList; std::recursive_mutex ListLock; -} // namespace - -/* Mixing thread piority level */ -ALint RTPrioLevel; - -FILE *gLogFile{stderr}; -#ifdef _DEBUG -LogLevel gLogLevel{LogWarning}; -#else -LogLevel gLogLevel{LogError}; -#endif - -/************************************************ - * Library initialization - ************************************************/ -#if defined(_WIN32) && !defined(AL_LIBTYPE_STATIC) -BOOL APIENTRY DllMain(HINSTANCE module, DWORD reason, LPVOID /*reserved*/) -{ - switch(reason) - { - case DLL_PROCESS_ATTACH: - /* Pin the DLL so we won't get unloaded until the process terminates */ - GetModuleHandleExW(GET_MODULE_HANDLE_EX_FLAG_PIN | GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS, - (WCHAR*)module, &module); - break; - - case DLL_PROCESS_DETACH: - break; - } - return TRUE; -} -#endif -static void alc_initconfig(void) +void alc_initconfig(void) { const char *str{getenv("ALSOFT_LOGLEVEL")}; if(str) @@ -1176,7 +1144,7 @@ static void alc_initconfig(void) /************************************************ * Device enumeration ************************************************/ -static void ProbeAllDevicesList() +void ProbeAllDevicesList() { DO_INITCONFIG(); @@ -1185,7 +1153,7 @@ static void ProbeAllDevicesList() if(PlaybackFactory) PlaybackFactory->probe(DevProbe::Playback, &alcAllDevicesList); } -static void ProbeCaptureDeviceList() +void ProbeCaptureDeviceList() { DO_INITCONFIG(); @@ -1195,6 +1163,38 @@ static void ProbeCaptureDeviceList() CaptureFactory->probe(DevProbe::Capture, &alcCaptureDeviceList); } +} // namespace + +/* Mixing thread piority level */ +ALint RTPrioLevel; + +FILE *gLogFile{stderr}; +#ifdef _DEBUG +LogLevel gLogLevel{LogWarning}; +#else +LogLevel gLogLevel{LogError}; +#endif + +/************************************************ + * Library initialization + ************************************************/ +#if defined(_WIN32) && !defined(AL_LIBTYPE_STATIC) +BOOL APIENTRY DllMain(HINSTANCE module, DWORD reason, LPVOID /*reserved*/) +{ + switch(reason) + { + case DLL_PROCESS_ATTACH: + /* Pin the DLL so we won't get unloaded until the process terminates */ + GetModuleHandleExW(GET_MODULE_HANDLE_EX_FLAG_PIN | GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS, + (WCHAR*)module, &module); + break; + + case DLL_PROCESS_DETACH: + break; + } + return TRUE; +} +#endif /************************************************ * Device format information |