Skip to content

Commit

Permalink
Update remaining drafts to use the new convention for extension id
Browse files Browse the repository at this point in the history
  • Loading branch information
abique committed Jan 8, 2024
1 parent 190771a commit cbe6b6b
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* `CLAP_EXT_TRACK_INFO`

Note: we kept the last draft extension ID in order to not break plugins already using it.
Note: remaining draft extension ID as been updated to follow the new convention.

## Removed draft extensions

Expand Down
2 changes: 1 addition & 1 deletion include/clap/ext/draft/ambisonic.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// This extension can be used to specify the channel mapping used by the plugin.

static CLAP_CONSTEXPR const char CLAP_EXT_AMBISONIC[] = "clap.ambisonic.draft/3";
static CLAP_CONSTEXPR const char CLAP_EXT_AMBISONIC[] = "clap.ambisonic/3";

static CLAP_CONSTEXPR const char CLAP_PORT_AMBISONIC[] = "ambisonic";

Expand Down
2 changes: 1 addition & 1 deletion include/clap/ext/draft/extensible-audio-ports.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ extern "C" {

// This extension lets the host add and remove audio ports to the plugin.
static CLAP_CONSTEXPR const char CLAP_EXT_EXTENSIBLE_AUDIO_PORTS[] =
"clap.extensible-audio-ports.draft0";
"clap.extensible-audio-ports/1";

typedef struct clap_plugin_extensible_audio_ports {
// Asks the plugin to add a new port (at the end of the list), with the following settings.
Expand Down
2 changes: 1 addition & 1 deletion include/clap/ext/draft/resource-directory.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include "../../plugin.h"

static CLAP_CONSTEXPR const char CLAP_EXT_RESOURCE_DIRECTORY[] = "clap.resource-directory.draft/0";
static CLAP_CONSTEXPR const char CLAP_EXT_RESOURCE_DIRECTORY[] = "clap.resource-directory/1";

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion include/clap/ext/draft/transport-control.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// The host has no obligation to execute these requests, so the interface may be
// partially working.

static CLAP_CONSTEXPR const char CLAP_EXT_TRANSPORT_CONTROL[] = "clap.transport-control.draft/0";
static CLAP_CONSTEXPR const char CLAP_EXT_TRANSPORT_CONTROL[] = "clap.transport-control/1";

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion include/clap/ext/draft/triggers.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "../../events.h"
#include "../../string-sizes.h"

static CLAP_CONSTEXPR const char CLAP_EXT_TRIGGERS[] = "clap.triggers.draft/0";
static CLAP_CONSTEXPR const char CLAP_EXT_TRIGGERS[] = "clap.triggers/1";

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion include/clap/ext/draft/tuning.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "../../events.h"
#include "../../string-sizes.h"

static CLAP_CONSTEXPR const char CLAP_EXT_TUNING[] = "clap.tuning.draft/2";
static CLAP_CONSTEXPR const char CLAP_EXT_TUNING[] = "clap.tuning/2";

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion include/clap/factory/draft/plugin-invalidation.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Use it to retrieve const clap_plugin_invalidation_factory_t* from
// clap_plugin_entry.get_factory()
static const CLAP_CONSTEXPR char CLAP_PLUGIN_INVALIDATION_FACTORY_ID[] =
"clap.plugin-invalidation-factory/draft0";
"clap.plugin-invalidation-factory/1";

#ifdef __cplusplus
extern "C" {
Expand Down

0 comments on commit cbe6b6b

Please sign in to comment.