diff options
author | David Robillard <d@drobilla.net> | 2016-10-06 15:51:11 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-10-06 15:51:11 -0400 |
commit | 77f6e9e63ce9ad329b43c92e8a9556aff8e78f2f (patch) | |
tree | 50dca5900274ca2f95c3d06069b7fe0bd285e46b /ingen | |
parent | a513af4218d0a62a45960d04ff6ddeecb8d3d4f5 (diff) | |
download | ingen-77f6e9e63ce9ad329b43c92e8a9556aff8e78f2f.tar.gz ingen-77f6e9e63ce9ad329b43c92e8a9556aff8e78f2f.tar.bz2 ingen-77f6e9e63ce9ad329b43c92e8a9556aff8e78f2f.zip |
Add plugin state saving
This only works with a server-side save, so the GUI now uses that if the
server is not running remotely, where "remotely" is defined as "via
TCP". This isn't perfect, since running ingen via TCP locally is a
perfectly valid thing to do, but it will do for now.
Diffstat (limited to 'ingen')
-rw-r--r-- | ingen/Node.hpp | 1 | ||||
-rw-r--r-- | ingen/URIs.hpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/ingen/Node.hpp b/ingen/Node.hpp index fb5fc985..d6253cc4 100644 --- a/ingen/Node.hpp +++ b/ingen/Node.hpp @@ -69,6 +69,7 @@ public: // Plugin blocks only virtual LilvInstance* instance() { return NULL; } + virtual bool save_state(const std::string& dir) const { return false; } // All objects virtual GraphType graph_type() const = 0; diff --git a/ingen/URIs.hpp b/ingen/URIs.hpp index 6a691ba2..44f1056e 100644 --- a/ingen/URIs.hpp +++ b/ingen/URIs.hpp @@ -203,6 +203,7 @@ public: const Quark rdfs_seeAlso; const Quark rsz_minimumSize; const Quark state_loadDefaultState; + const Quark state_state; const Quark time_Position; const Quark time_bar; const Quark time_barBeat; |