LV2_State_Make_Path.path

Return a path the plugin may use to create a new file. @param handle MUST be the handle member of this struct. @param path The path of the new file within a namespace unique to this plugin instance. @return The absolute path to use for the new file.

This function can be used by plugins to create files and directories, either at state saving time (if this feature is passed to LV2_State_Interface.save()) or any time (if this feature is passed to LV2_Descriptor.instantiate()).

The host MUST do whatever is necessary for the plugin to be able to create a file at the returned path (e.g. using fopen), including creating any leading directories.

If this function is passed to LV2_Descriptor.instantiate(), it may be called from any non-realtime context. If it is passed to LV2_State_Interface.save(), it may only be called within the dynamic scope of that function call.

The caller is responsible for freeing the returned value with free().

struct LV2_State_Make_Path
char* function(LV2_State_Make_Path_Handle handle, const char* path) path;

Meta