clap

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

commit 40eca606e47c1a0d0a72c027c32b6ffb149d9267
parent c5944cce009e763e8011432a5f1c911a7985e9af
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date:   Fri, 27 May 2022 11:58:53 +0200

file ref: path can go up to 32K on NTFS, so better to go for a design that is flexible regarding path length

Diffstat:
Minclude/clap/ext/draft/file-reference.h | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/clap/ext/draft/file-reference.h b/include/clap/ext/draft/file-reference.h @@ -25,8 +25,12 @@ extern "C" { typedef struct clap_file_reference { clap_id resource_id; - char path[CLAP_PATH_SIZE]; bool belongs_to_plugin_collection; + + size_t path_capacity; // [in] the number of bytes reserved in path + size_t path_size; // [out] the actual length of the path, can be bigger than path_capacity + char *path; // path to the file on the disk, must be null terminated, and maybe truncated if the + // capacity is less than the size } clap_file_reference_t; typedef struct clap_plugin_file_reference {