2023-03-06 14:42:04 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
// Copyright The Music Player Daemon Project
|
2009-12-14 22:41:29 +01:00
|
|
|
|
2013-01-10 10:15:09 +01:00
|
|
|
#ifndef MPD_INPUT_REGISTRY_HXX
|
|
|
|
#define MPD_INPUT_REGISTRY_HXX
|
2009-12-14 22:41:29 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* NULL terminated list of all input plugins which were enabled at
|
|
|
|
* compile time.
|
|
|
|
*/
|
2013-10-17 10:20:57 +02:00
|
|
|
extern const struct InputPlugin *const input_plugins[];
|
2009-12-14 22:41:29 +01:00
|
|
|
|
|
|
|
extern bool input_plugins_enabled[];
|
|
|
|
|
2012-06-12 22:21:48 +02:00
|
|
|
#define input_plugins_for_each(plugin) \
|
2013-10-17 10:20:57 +02:00
|
|
|
for (const InputPlugin *plugin, \
|
2012-06-12 22:21:48 +02:00
|
|
|
*const*input_plugin_iterator = &input_plugins[0]; \
|
|
|
|
(plugin = *input_plugin_iterator) != NULL; \
|
|
|
|
++input_plugin_iterator)
|
|
|
|
|
|
|
|
#define input_plugins_for_each_enabled(plugin) \
|
|
|
|
input_plugins_for_each(plugin) \
|
|
|
|
if (input_plugins_enabled[input_plugin_iterator - input_plugins])
|
|
|
|
|
2021-10-13 11:28:04 +02:00
|
|
|
[[gnu::pure]]
|
2018-10-25 09:09:21 +02:00
|
|
|
bool
|
|
|
|
HasRemoteTagScanner(const char *uri) noexcept;
|
|
|
|
|
2009-12-14 22:41:29 +01:00
|
|
|
#endif
|