file ref: path can go up to 32K on NTFS, so better to go for a design that is flexible regarding path length
@@ -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 {
