clap

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

commit 357f5bde863f89e567b0a658309465af019d9515
parent f17d95653eea4208c15c74e8793bea530a380771
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date:   Fri, 22 Dec 2023 10:52:09 +0100

Move clap_plugin_id_t to its own file

Diffstat:
Minclude/clap/clap.h | 1+
Minclude/clap/factory/preset-discovery.h | 11-----------
Ainclude/clap/plugin-id.h | 13+++++++++++++
3 files changed, 14 insertions(+), 11 deletions(-)

diff --git a/include/clap/clap.h b/include/clap/clap.h @@ -35,6 +35,7 @@ #include "plugin.h" #include "plugin-features.h" #include "host.h" +#include "plugin-id.h" #include "ext/audio-ports-activation.h" #include "ext/audio-ports-config.h" diff --git a/include/clap/factory/preset-discovery.h b/include/clap/factory/preset-discovery.h @@ -93,17 +93,6 @@ typedef uint64_t clap_timestamp_t; // Value for unknown timestamp. static const clap_timestamp_t CLAP_TIMESTAMP_UNKNOWN = 0; -// Pair of plugin ABI and plugin identifier -typedef struct clap_plugin_id { - // The plugin ABI name, in lowercase. - // eg: "clap" - const char *abi; - - // The plugin ID, for example "com.u-he.Diva". - // If the ABI rely upon binary plugin ids, then they shall be hex encoded (lower case). - const char *id; -} clap_plugin_id_t; - // 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. diff --git a/include/clap/plugin-id.h b/include/clap/plugin-id.h @@ -0,0 +1,13 @@ +#pragma once + +// Pair of plugin ABI and plugin identifier. +typedef struct clap_plugin_id { + // The plugin ABI name, in lowercase. + // eg: "clap" + const char *abi; + + // The plugin ID, for example "com.u-he.Diva". + // If the ABI rely upon binary plugin ids, then they shall be hex encoded (lower case). + const char *id; +} clap_plugin_id_t; +