commit cc39120de6ae8da39eecb67e7cf5de85d512fab0 parent 79e8071f08cff1b7644b7434beb0d7c5cd76e2ef Author: Alexandre Bique <bique.alexandre@gmail.com> Date: Thu, 29 Dec 2022 20:58:35 +0100 Adds an invalidation watch file Diffstat:
M | include/clap/preset-discovery.h | | | 8 | +++++++- |
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/include/clap/preset-discovery.h b/include/clap/preset-discovery.h @@ -159,7 +159,13 @@ typedef struct clap_preset_provider { const clap_preset_provider_descriptor_t *desc; // Destroys the preset provider - void (CLAP_ABI *destroy)(const struct clap_preset_provider *provider); + void(CLAP_ABI *destroy)(const struct clap_preset_provider *provider); + + // Retrives the path to a watch file. + // Whenever the given file is "touched", then the indexer shall invalidate all the data. + bool(CLAP_ABI *invalidation_watch_file)(const struct clap_preset_provider *provider, + char *watch_file_path, + uint32_t watch_file_path_capacity); // returns the number of locations uint32_t(CLAP_ABI *locations_count)(const struct clap_preset_provider *provider);