clap

CLAP Audio Plugin API
Log | Files | Refs | README | LICENSE

commit 4029eba3c6b2f0a05c05e14cfed7dbfe3462477b
parent 8006fd12be71db6a097437c423406da9a9f1f33d
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date:   Mon,  2 Jan 2023 09:39:31 +0100

Move the factory ID top

Diffstat:
Minclude/clap/preset-discovery.h | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/include/clap/preset-discovery.h b/include/clap/preset-discovery.h @@ -32,11 +32,16 @@ #include "private/std.h" #include "private/macros.h" #include "string-sizes.h" +#include "version.h" #ifdef __cplusplus extern "C" { #endif +// Use it to retrieve const struct clap_preset_discovery_factory* +static const CLAP_CONSTEXPR char CLAP_PRESET_DISCOVERY_FACTORY_ID[] = + "clap.preset-discovery-factory"; + /** Receiver that receives the metadata for a single preset file. * The host would define the various callbacks in this interface and the preset parser function * would then call them. @@ -214,9 +219,6 @@ typedef struct clap_preset_indexer { const char *version; } clap_preset_indexer_t; -static const CLAP_CONSTEXPR char CLAP_PRESET_DISCOVERY_FACTORY_ID[] = - "clap.preset-discovery-factory"; - // Every methods in this factory must be thread-safe. // It is encourraged to perform preset indexing in background threads, maybe even in background // process.