Skip to content

Commit

Permalink
Move clap_plugin_id_t to its own file
Browse files Browse the repository at this point in the history
  • Loading branch information
abique committed Dec 22, 2023
1 parent f17d956 commit 357f5bd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
1 change: 1 addition & 0 deletions include/clap/clap.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
11 changes: 0 additions & 11 deletions include/clap/factory/preset-discovery.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
13 changes: 13 additions & 0 deletions include/clap/plugin-id.h
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 357f5bd

Please sign in to comment.