Commit 39dc83bd authored by Max Kellermann's avatar Max Kellermann

output/Print: print the plugin name

parent 503063cd
...@@ -2,6 +2,7 @@ ver 0.21 (not yet released) ...@@ -2,6 +2,7 @@ ver 0.21 (not yet released)
* protocol * protocol
- "tagtypes" can be used to hide tags - "tagtypes" can be used to hide tags
- "find" and "search" can sort - "find" and "search" can sort
- "outputs" prints the plugin name
- close connection when client sends HTTP request - close connection when client sends HTTP request
* tags * tags
- new tag "OriginalDate" - new tag "OriginalDate"
......
...@@ -2521,6 +2521,7 @@ OK ...@@ -2521,6 +2521,7 @@ OK
<screen> <screen>
outputid: 0 outputid: 0
outputname: My ALSA Device outputname: My ALSA Device
plugin: alsa
outputenabled: 0 outputenabled: 0
OK OK
</screen> </screen>
......
...@@ -59,6 +59,12 @@ AudioOutputControl::GetName() const noexcept ...@@ -59,6 +59,12 @@ AudioOutputControl::GetName() const noexcept
} }
const char * const char *
AudioOutputControl::GetPluginName() const noexcept
{
return output->GetPluginName();
}
const char *
AudioOutputControl::GetLogName() const noexcept AudioOutputControl::GetLogName() const noexcept
{ {
return output->GetLogName(); return output->GetLogName();
......
...@@ -233,6 +233,9 @@ public: ...@@ -233,6 +233,9 @@ public:
const char *GetName() const noexcept; const char *GetName() const noexcept;
gcc_pure gcc_pure
const char *GetPluginName() const noexcept;
gcc_pure
const char *GetLogName() const noexcept; const char *GetLogName() const noexcept;
AudioOutputClient &GetClient() noexcept { AudioOutputClient &GetClient() noexcept {
......
...@@ -147,6 +147,10 @@ public: ...@@ -147,6 +147,10 @@ public:
return name; return name;
} }
const char *GetPluginName() const noexcept {
return plugin_name;
}
const char *GetLogName() const noexcept { const char *GetLogName() const noexcept {
return log_name.c_str(); return log_name.c_str();
} }
......
...@@ -36,7 +36,10 @@ printAudioDevices(Response &r, const MultipleOutputs &outputs) ...@@ -36,7 +36,10 @@ printAudioDevices(Response &r, const MultipleOutputs &outputs)
r.Format("outputid: %u\n" r.Format("outputid: %u\n"
"outputname: %s\n" "outputname: %s\n"
"plugin: %s\n"
"outputenabled: %i\n", "outputenabled: %i\n",
i, ao.GetName(), ao.IsEnabled()); i,
ao.GetName(), ao.GetPluginName(),
ao.IsEnabled());
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment