*/Registry: use constinit

This commit is contained in:
Max Kellermann 2023-03-07 11:59:39 +01:00
parent 333b36f090
commit 815b248990
10 changed files with 10 additions and 10 deletions

View File

@ -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

View File

@ -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,

View File

@ -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

View File

@ -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,

View File

@ -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,

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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,

View File

@ -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,