clap

CLAP Audio Plugin API
Log | Files | Refs | README | LICENSE

commit 89c57c569c0ac9020cc7ca530f1524ee22288afc
parent 1856ceb46d32ec60fe11111fc175c85673a191bb
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date:   Mon, 24 Oct 2022 12:51:00 +0200

Add a way to garbage collect the files

Diffstat:
Minclude/clap/ext/draft/resource-directory.h | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/include/clap/ext/draft/resource-directory.h b/include/clap/ext/draft/resource-directory.h @@ -24,6 +24,7 @@ extern "C" { /// Keeping the shared directory clean: /// - to avoid clashes in the shared directory, plugins are encourraged to organize their files in /// sub-folders, for example create one subdirectory using the vendor name +/// - don't use symbolic links or hard links which points outside of the directory /// /// Resource life-time: /// - exclusive folder content is managed by the plugin instance @@ -52,6 +53,14 @@ typedef struct clap_plugin_resource_directory { // factory content unless the param all is true. // [main-thread] void(CLAP_ABI *collect)(const clap_plugin_t *plugin, bool all); + + // Returns true if the plugin is using the file pointed by path or any file under the path + // directory. + // + // path must be absolute. + // + // [main-thread] + bool(CLAP_ABI *is_using_file)(const clap_plugin *plugin, const char *path); } clap_plugin_resource_directory_t; typedef struct clap_host_resource_directory {