commit cf3fffae6e998cb7e236b529aa795fee32ce6967 parent 2c2380cb68aa90749649dd318d0b10301103784e Author: Alexandre Bique <bique.alexandre@gmail.com> Date: Fri, 30 Dec 2022 18:47:33 +0100 more flexible locations using URI Diffstat:
M | include/clap/preset-discovery.h | | | 6 | ++++-- |
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/include/clap/preset-discovery.h b/include/clap/preset-discovery.h @@ -136,8 +136,10 @@ typedef struct clap_preset_location { // name of this location char name[CLAP_NAME_SIZE]; - // path to a directory or a file on the file system in which preset can be found - char path[CLAP_URI_SIZE]; + // URI + // - file:/// for pointing to a file or directory; directories are scanned recursively + // - plugin://<clap-plugin-id> for presets which are bundled inside the plugin itself + char uri[CLAP_URI_SIZE]; } clap_preset_location_t; // A collection, represent a collection of presets; it is will most often used to identify presets