commit 0ef46b9006439adf87e650457aa1397fd626dff5
parent 2ee31b06587a40aa6b4ce9367eee7773eb0aa9e4
Author: Alexandre BIQUE <bique.alexandre@gmail.com>
Date: Mon, 3 Jan 2022 12:49:40 +0100
Rework the terminology of event space and type
Diffstat:
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/include/clap/ext/event-filter.h b/include/clap/ext/event-filter.h
@@ -17,7 +17,7 @@ extern "C" {
typedef struct clap_plugin_event_filter {
// Returns true if the plugin is interested in the given event type.
// [main-thread]
- bool (*accepts)(const clap_plugin_t *plugin, uint16_t space_id, uint16_t event_id);
+ bool (*accepts)(const clap_plugin_t *plugin, uint16_t space_id, uint16_t event_type);
} clap_plugin_event_filter_t;
diff --git a/include/clap/ext/event-registry.h b/include/clap/ext/event-registry.h
@@ -12,10 +12,9 @@ extern "C" {
typedef struct clap_host_event_registry {
// Queries an event space id.
+ // The space id 0 is reserved for CLAP's core events. See CLAP_CORE_EVENT_SPACE.
//
- // The first 1024 space_ids are reserved.
- //
- // Return false and sets *space_id to UINT16_MAX if the space name is unknown to the host.
+ // Return false and sets *space to UINT16_MAX if the space name is unknown to the host.
// [main-thread]
bool (*query)(const clap_host_t *host, const char *space_name, uint16_t *space_id);
} clap_host_event_registry_t;