summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/lv2_plugin.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-09-21 03:45:57 +0200
committerRobin Gareus <robin@gareus.org>2016-09-21 03:45:57 +0200
commit1acfb11cb663dbda25ec1f9fa920008171559ad9 (patch)
treed1e064c47fded5afaf19774660fa36dc628c81b5 /libs/ardour/ardour/lv2_plugin.h
parentad0aef7dce247ac69fc9c86554d0acbe6c3045bd (diff)
add a static flag to force writing LV2 state
This is needed for save-as and archiving, LV2 state may not be saved otherwise if lilv_state_equals() returns true. Also if thestate is saved as part of save-as or archiving or template, the state-version did increase. Upcoming normal save will reference a plugin state that does not exist in the current session bundle.
Diffstat (limited to 'libs/ardour/ardour/lv2_plugin.h')
-rw-r--r--libs/ardour/ardour/lv2_plugin.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/ardour/lv2_plugin.h b/libs/ardour/ardour/lv2_plugin.h
index 269c158714..a1e38fda32 100644
--- a/libs/ardour/ardour/lv2_plugin.h
+++ b/libs/ardour/ardour/lv2_plugin.h
@@ -63,6 +63,8 @@ class LIBARDOUR_API LV2Plugin : public ARDOUR::Plugin, public ARDOUR::Workee
LV2Plugin (const LV2Plugin &);
~LV2Plugin ();
+ static bool force_state_save;
+
std::string unique_id () const;
const char* uri () const;
const char* label () const;