mpd/src/output/Registry.hxx

20 lines
545 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[];
const AudioOutputPlugin *
2023-03-07 11:56:49 +01:00
GetAudioOutputPluginByName(const char *name);
#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