clap

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

commit 06d6c859b7da5acbd37ad1a7b9be88a97398c1ce
parent a44b93b32120d764014e7284e738228b43dbc669
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date:   Mon,  8 Jan 2024 12:48:06 +0100

Merge pull request #377 from glowcoil/draft-includes

Do not include draft headers from clap.h
Diffstat:
MChangeLog.md | 4++++
Minclude/clap/clap.h | 10----------
Ainclude/clap/draft.h | 12++++++++++++
Msrc/main.c | 1+
Msrc/main.cc | 1+
5 files changed, 18 insertions(+), 10 deletions(-)

diff --git a/ChangeLog.md b/ChangeLog.md @@ -43,6 +43,10 @@ Note: we kept the last draft factory ID in order to not break plugins already us * [plugin-template.c](src/plugin-template.c): implement thread-safe plugin entry init counter +## Organization + +* `clap.h` no longer includes headers from `ext/draft` or `factory/draft`. Draft extension and factory headers must now be explicitly included, either individually or via the `draft.h` header. + # Changes in 1.1.10 * [params.h](include/clap/ext/params.h): add `CLAP_PARAM_IS_ENUM` flag. diff --git a/include/clap/clap.h b/include/clap/clap.h @@ -30,9 +30,6 @@ #include "factory/plugin-factory.h" #include "factory/preset-discovery.h" -#include "factory/draft/plugin-invalidation.h" -#include "factory/draft/plugin-state-converter.h" - #include "plugin.h" #include "plugin-features.h" #include "host.h" @@ -64,10 +61,3 @@ #include "ext/timer-support.h" #include "ext/track-info.h" #include "ext/voice-info.h" - -#include "ext/draft/ambisonic.h" -#include "ext/draft/cv.h" -#include "ext/draft/resource-directory.h" -#include "ext/draft/triggers.h" -#include "ext/draft/tuning.h" -#include "ext/draft/extensible-audio-ports.h" diff --git a/include/clap/draft.h b/include/clap/draft.h @@ -0,0 +1,12 @@ +#pragma once + +#include "factory/draft/plugin-invalidation.h" +#include "factory/draft/plugin-state-converter.h" + +#include "ext/draft/ambisonic.h" +#include "ext/draft/cv.h" +#include "ext/draft/midi-mappings.h" +#include "ext/draft/resource-directory.h" +#include "ext/draft/triggers.h" +#include "ext/draft/tuning.h" +#include "ext/draft/extensible-audio-ports.h" diff --git a/src/main.c b/src/main.c @@ -1,4 +1,5 @@ #include <clap/clap.h> +#include <clap/draft.h> // The purpose of this file is to check that all headers compile int main(int argc, char **argv) { diff --git a/src/main.cc b/src/main.cc @@ -1,4 +1,5 @@ #include <clap/clap.h> +#include <clap/draft.h> // The purpose of this file is to check that all headers compile