*/Registry: use constinit
This commit is contained in:
parent
333b36f090
commit
815b248990
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
constexpr const ArchivePlugin *archive_plugins[] = {
|
constinit const ArchivePlugin *const archive_plugins[] = {
|
||||||
#ifdef ENABLE_BZ2
|
#ifdef ENABLE_BZ2
|
||||||
&bz2_archive_plugin,
|
&bz2_archive_plugin,
|
||||||
#endif
|
#endif
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
constexpr const DatabasePlugin *database_plugins[] = {
|
constinit const DatabasePlugin *const database_plugins[] = {
|
||||||
&simple_db_plugin,
|
&simple_db_plugin,
|
||||||
#ifdef ENABLE_LIBMPDCLIENT
|
#ifdef ENABLE_LIBMPDCLIENT
|
||||||
&proxy_db_plugin,
|
&proxy_db_plugin,
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
constexpr const struct DecoderPlugin *decoder_plugins[] = {
|
constinit const struct DecoderPlugin *const decoder_plugins[] = {
|
||||||
#ifdef ENABLE_MAD
|
#ifdef ENABLE_MAD
|
||||||
&mad_decoder_plugin,
|
&mad_decoder_plugin,
|
||||||
#endif
|
#endif
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
constexpr const EncoderPlugin *encoder_plugins[] = {
|
constinit const EncoderPlugin *const encoder_plugins[] = {
|
||||||
&null_encoder_plugin,
|
&null_encoder_plugin,
|
||||||
#ifdef ENABLE_VORBISENC
|
#ifdef ENABLE_VORBISENC
|
||||||
&vorbis_encoder_plugin,
|
&vorbis_encoder_plugin,
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
static constexpr const FilterPlugin *filter_plugins[] = {
|
static constinit const FilterPlugin *const filter_plugins[] = {
|
||||||
&null_filter_plugin,
|
&null_filter_plugin,
|
||||||
&route_filter_plugin,
|
&route_filter_plugin,
|
||||||
&normalize_filter_plugin,
|
&normalize_filter_plugin,
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
#include "plugins/CdioParanoiaInputPlugin.hxx"
|
#include "plugins/CdioParanoiaInputPlugin.hxx"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
constexpr const InputPlugin *input_plugins[] = {
|
constinit const InputPlugin *const input_plugins[] = {
|
||||||
#ifdef ENABLE_ALSA
|
#ifdef ENABLE_ALSA
|
||||||
&input_plugin_alsa,
|
&input_plugin_alsa,
|
||||||
#endif
|
#endif
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
constexpr const NeighborPlugin *neighbor_plugins[] = {
|
constinit const NeighborPlugin *const neighbor_plugins[] = {
|
||||||
#ifdef ENABLE_SMBCLIENT
|
#ifdef ENABLE_SMBCLIENT
|
||||||
&smbclient_neighbor_plugin,
|
&smbclient_neighbor_plugin,
|
||||||
#endif
|
#endif
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#include "util/StringAPI.hxx"
|
#include "util/StringAPI.hxx"
|
||||||
|
|
||||||
constexpr const AudioOutputPlugin *audio_output_plugins[] = {
|
constinit const AudioOutputPlugin *const audio_output_plugins[] = {
|
||||||
#ifdef HAVE_SHOUT
|
#ifdef HAVE_SHOUT
|
||||||
&shout_output_plugin,
|
&shout_output_plugin,
|
||||||
#endif
|
#endif
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
|
|
||||||
constexpr const PlaylistPlugin *playlist_plugins[] = {
|
constinit const PlaylistPlugin *const playlist_plugins[] = {
|
||||||
&extm3u_playlist_plugin,
|
&extm3u_playlist_plugin,
|
||||||
&m3u_playlist_plugin,
|
&m3u_playlist_plugin,
|
||||||
&pls_playlist_plugin,
|
&pls_playlist_plugin,
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
constexpr const StoragePlugin *storage_plugins[] = {
|
constinit const StoragePlugin *const storage_plugins[] = {
|
||||||
&local_storage_plugin,
|
&local_storage_plugin,
|
||||||
#ifdef ENABLE_SMBCLIENT
|
#ifdef ENABLE_SMBCLIENT
|
||||||
&smbclient_storage_plugin,
|
&smbclient_storage_plugin,
|
||||||
|
Loading…
Reference in New Issue
Block a user