Vapor/LV2: API to pass options to exporter
This commit is contained in:
@@ -94,7 +94,7 @@ class LIBARDOUR_API LV2Plugin : public ARDOUR::Plugin, public ARDOUR::Workee
|
||||
const void* extension_data (const char* uri) const;
|
||||
|
||||
#ifdef LV2_EXTENDED
|
||||
int setup_export (const char*);
|
||||
int setup_export (const char*, LV2_Options_Option const* options = NULL);
|
||||
int finalize_export ();
|
||||
bool can_export () const { return _export_interface; }
|
||||
#endif
|
||||
|
||||
@@ -1216,12 +1216,13 @@ LV2Plugin::midnam_model () {
|
||||
}
|
||||
|
||||
int
|
||||
LV2Plugin::setup_export (const char* fn)
|
||||
LV2Plugin::setup_export (const char* fn, LV2_Options_Option const* options)
|
||||
{
|
||||
if (!_export_interface) {
|
||||
return -1;
|
||||
}
|
||||
return _export_interface->setup ((void*)_impl->instance->lv2_handle, fn, NULL);
|
||||
|
||||
return _export_interface->setup ((void*)_impl->instance->lv2_handle, fn, options);
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user