commit c746d9a09f0967bffb1c3d72d03f0a7fbf58222e
parent 6d4c3acc3730491e3ef203638a07544b42679355
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date: Mon, 6 Mar 2023 18:43:53 +0100
Missed some URI cleanup
Diffstat:
2 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/include/clap/ext/draft/preset-load.h b/include/clap/ext/draft/preset-load.h
@@ -9,11 +9,8 @@ extern "C" {
#endif
typedef struct clap_plugin_preset_load {
- // Loads a preset in the plugin native preset file format from a URI. eg:
- // - "file:///home/abique/.u-he/Diva/Presets/Diva/HS Bass Nine.h2p", load_key: null
- // - "plugin://<plugin-id>", load_key: <XXX>
- //
- // The preset discovery provider defines the uri and load_key to be passed to this function.
+ // Loads a preset in the plugin native preset file format from a location.
+ // The preset discovery provider defines the location and load_key to be passed to this function.
//
// [main-thread]
bool(CLAP_ABI *from_location)(const clap_plugin_t *plugin,
@@ -29,7 +26,8 @@ typedef struct clap_host_preset_load {
//
// [main-thread]
void(CLAP_ABI *on_error)(const clap_host_t *host,
- const char *uri,
+ uint32_t location_kind,
+ const char *location,
int32_t os_error,
const char *msg);
diff --git a/include/clap/factory/draft/preset-discovery.h b/include/clap/factory/draft/preset-discovery.h
@@ -207,7 +207,7 @@ typedef struct clap_preset_discovery_soundpack {
const char *description; // optional, reasonably short description of the sound pack
const char *homepage_url; // optional, url to the pack's homepage
const char *vendor; // optional, sound pack's vendor
- const char *image_uri; // optional, may be an image on disk or from an http server
+ const char *image_path; // optional, an image on disk
clap_timestamp_t release_timestamp; // release date, CLAP_TIMESTAMP_UNKNOWN if unavailable
} clap_preset_discovery_soundpack_t;
@@ -235,7 +235,8 @@ typedef struct clap_preset_discovery_provider {
// reads metadata from the given file and passes them to the metadata receiver
bool(CLAP_ABI *get_metadata)(const struct clap_preset_discovery_provider *provider,
- const char *uri,
+ uint32_t location_kind,
+ const char *location,
const clap_preset_discovery_metadata_receiver_t *metadata_receiver);
// Query an extension.