mpd/src/output/Registry.hxx

21 lines
568 B
C++
Raw Normal View History

// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright The Music Player Daemon Project
2013-01-04 09:46:41 +01:00
#ifndef MPD_OUTPUT_LIST_HXX
#define MPD_OUTPUT_LIST_HXX
struct AudioOutputPlugin;
extern const AudioOutputPlugin *const audio_output_plugins[];
2023-03-07 11:57:39 +01:00
[[gnu::pure]]
const AudioOutputPlugin *
2023-03-07 11:57:39 +01:00
GetAudioOutputPluginByName(const char *name) noexcept;
#define audio_output_plugins_for_each(plugin) \
for (const AudioOutputPlugin *plugin, \
*const*output_plugin_iterator = &audio_output_plugins[0]; \
2013-10-28 23:58:17 +01:00
(plugin = *output_plugin_iterator) != nullptr; ++output_plugin_iterator)
#endif