output/Registry: rename function

This commit is contained in:
Max Kellermann 2023-03-07 11:56:49 +01:00
parent 86ae45108c
commit b18ef61361
4 changed files with 4 additions and 4 deletions

View File

@ -265,7 +265,7 @@ audio_output_new(EventLoop &normal_event_loop, EventLoop &rt_event_loop,
if (p == nullptr)
throw std::runtime_error("Missing \"type\" configuration");
plugin = AudioOutputPlugin_get(p);
plugin = GetAudioOutputPluginByName(p);
if (plugin == nullptr)
throw FmtRuntimeError("No such audio output plugin: {}",
p);

View File

@ -94,7 +94,7 @@ constexpr const AudioOutputPlugin *audio_output_plugins[] = {
};
const AudioOutputPlugin *
AudioOutputPlugin_get(const char *name)
GetAudioOutputPluginByName(const char *name)
{
audio_output_plugins_for_each(plugin)
if (StringIsEqual(plugin->name, name))

View File

@ -9,7 +9,7 @@ struct AudioOutputPlugin;
extern const AudioOutputPlugin *const audio_output_plugins[];
const AudioOutputPlugin *
AudioOutputPlugin_get(const char *name);
GetAudioOutputPluginByName(const char *name);
#define audio_output_plugins_for_each(plugin) \
for (const AudioOutputPlugin *plugin, \

View File

@ -86,7 +86,7 @@ LoadAudioOutput(const ConfigData &config, EventLoop &event_loop,
if (plugin_name == nullptr)
throw std::runtime_error("Missing \"type\" configuration");
const auto *plugin = AudioOutputPlugin_get(plugin_name);
const auto *plugin = GetAudioOutputPluginByName(plugin_name);
if (plugin == nullptr)
throw FmtRuntimeError("No such audio output plugin: {}",
plugin_name);