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