From cbe59714d496704229c126e3d014356d7da739c6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 25 Jan 2017 10:33:38 +0100 Subject: [PATCH] output/solaris: convert to class, make attributes private --- src/output/plugins/SolarisOutputPlugin.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/output/plugins/SolarisOutputPlugin.cxx b/src/output/plugins/SolarisOutputPlugin.cxx index 3e475a6d7..8ef209f80 100644 --- a/src/output/plugins/SolarisOutputPlugin.cxx +++ b/src/output/plugins/SolarisOutputPlugin.cxx @@ -50,7 +50,9 @@ struct audio_info { #endif -struct SolarisOutput { +class SolarisOutput { + friend struct AudioOutputWrapper; + AudioOutput base; /* configuration */ @@ -62,6 +64,7 @@ struct SolarisOutput { :base(solaris_output_plugin, block), device(block.GetBlockValue("device", "/dev/audio")) {} +public: static SolarisOutput *Create(const ConfigBlock &block) { return new SolarisOutput(block); }