aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/pulseaudio.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-01 20:18:51 -0700
committerChris Robinson <[email protected]>2018-11-01 20:18:51 -0700
commit434582b8e35b9fcd4566d82d50aca58251258331 (patch)
treef93dafd3583e9a8500f9ccae18c7248ec4a032cd /Alc/backends/pulseaudio.cpp
parent1ca4e268f6b40bad3bd6723e28fde74316a72ed6 (diff)
Use an anonymous namespace instead of static for some things
Diffstat (limited to 'Alc/backends/pulseaudio.cpp')
-rw-r--r--Alc/backends/pulseaudio.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/Alc/backends/pulseaudio.cpp b/Alc/backends/pulseaudio.cpp
index a52a028d..b6f7940b 100644
--- a/Alc/backends/pulseaudio.cpp
+++ b/Alc/backends/pulseaudio.cpp
@@ -506,6 +506,8 @@ static void pulse_close(pa_threaded_mainloop *loop, pa_context *context, pa_stre
}
+namespace {
+
struct DevMap {
std::string name;
std::string device_name;
@@ -516,7 +518,7 @@ struct DevMap {
{ }
};
-static bool checkName(const std::vector<DevMap> &list, const std::string &name)
+bool checkName(const std::vector<DevMap> &list, const std::string &name)
{
return std::find_if(list.cbegin(), list.cend(),
[&name](const DevMap &entry) -> bool
@@ -524,8 +526,10 @@ static bool checkName(const std::vector<DevMap> &list, const std::string &name)
) != list.cend();
}
-static std::vector<DevMap> PlaybackDevices;
-static std::vector<DevMap> CaptureDevices;
+std::vector<DevMap> PlaybackDevices;
+std::vector<DevMap> CaptureDevices;
+
+} // namespace
struct PulsePlayback {