commit 79fe2aa37c57bbe8979a7d263d6360977b5c6a68
parent f4d51fe22183963a4bf26b7ebc9b71c26d8e38d0
Author: Alexandre BIQUE <bique.alexandre@gmail.com>
Date: Wed, 2 Jun 2021 22:16:29 +0200
update a bit the naming style
Diffstat:
5 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/include/clap/ext/audio-ports.h b/include/clap/ext/audio-ports.h
@@ -83,12 +83,12 @@ typedef struct clap_plugin_audio_ports {
// gets information about a configuration
// [main-thread]
- bool (*get_config)(const clap_plugin *plugin, uint32_t index, clap_audio_ports_config *config);
+ bool (*config_info)(const clap_plugin *plugin, uint32_t index, clap_audio_ports_config *config);
// selects the configuration designated by id
// returns true if the configuration could be applied
// [main-thread,plugin-deactivated]
- bool (*set_config)(const clap_plugin *plugin, clap_id config_id);
+ bool (*select_config)(const clap_plugin *plugin, clap_id config_id);
} clap_plugin_audio_ports;
enum {
diff --git a/include/clap/ext/draft/file-reference.h b/include/clap/ext/draft/file-reference.h
@@ -38,6 +38,9 @@ typedef struct clap_plugin_file_reference {
// [main-thread]
bool (*get)(const clap_plugin *plugin, uint32_t index, clap_file_reference *file_reference);
+ // This method does not compute the hash.
+ // It is only used in case of missing resource. The host may have additionnal known resource
+ // location and may be able to locate the file by using its known hash.
// [main-thread]
bool (*get_hash)(const clap_plugin *plugin,
clap_id resource_id,
@@ -47,7 +50,7 @@ typedef struct clap_plugin_file_reference {
// updates the path to a file reference
// [main-thread]
- bool (*set)(const clap_plugin *plugin, clap_id resource_id, const char *path);
+ bool (*update_path)(const clap_plugin *plugin, clap_id resource_id, const char *path);
// [main-thread]
bool (*save_resources)(const clap_plugin *plugin);
diff --git a/include/clap/ext/draft/quick-controls.h b/include/clap/ext/draft/quick-controls.h
@@ -23,13 +23,13 @@ typedef struct clap_plugin_quick_controls {
int32_t (*page_count)(const clap_plugin *plugin);
// [main-thread]
- bool (*get_page)(const clap_plugin *plugin, int32_t page_index, clap_quick_controls_page *page);
+ bool (*page_info)(const clap_plugin *plugin, int32_t page_index, clap_quick_controls_page *page);
// [main-thread]
void (*select_page)(const clap_plugin *plugin, clap_id page_id);
// [main-thread]
- clap_id (*get_selected_page)(const clap_plugin *plugin);
+ clap_id (*selected_page)(const clap_plugin *plugin);
} clap_host_plugin_info;
typedef struct clap_host_quick_controls {
diff --git a/include/clap/ext/gui.h b/include/clap/ext/gui.h
@@ -12,9 +12,9 @@ extern "C" {
typedef struct clap_plugin_gui {
// Get the size of the plugin UI.
// [main-thread]
- void (*get_size)(const clap_plugin *plugin, int32_t *width, int32_t *height);
+ void (*size)(const clap_plugin *plugin, int32_t *width, int32_t *height);
- // Sets the GUI scaling factor.
+ // Set the GUI scaling factor.
// [main-thread]
void (*set_scale)(const clap_plugin *plugin, double scale);
diff --git a/include/clap/ext/latency.h b/include/clap/ext/latency.h
@@ -13,7 +13,7 @@ extern "C" {
typedef struct clap_plugin_latency {
// Returns the plugin latency.
// [main-thread]
- uint32_t (*get_latency)(const clap_plugin *plugin);
+ uint32_t (*get)(const clap_plugin *plugin);
} clap_plugin_latency;
typedef struct clap_host_latency {