diff options
author | David Robillard <d@drobilla.net> | 2009-05-27 17:42:51 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-05-27 17:42:51 +0000 |
commit | c11ecf0fd10641218326ae384e80413ba3cdf46c (patch) | |
tree | 52ea61f88167a2e7eacc8fa5ff0ee39ee25b2e7e /src/common/interface | |
parent | 8feac4ed0e764c677d4d208377e956c6db94d2dd (diff) | |
download | ingen-c11ecf0fd10641218326ae384e80413ba3cdf46c.tar.gz ingen-c11ecf0fd10641218326ae384e80413ba3cdf46c.tar.bz2 ingen-c11ecf0fd10641218326ae384e80413ba3cdf46c.zip |
Remove 'new_patch', 'new_node', and 'new_port' from interface in favour of generic 'put'.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2011 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/common/interface')
-rw-r--r-- | src/common/interface/CommonInterface.hpp | 14 | ||||
-rw-r--r-- | src/common/interface/Resource.hpp | 8 |
2 files changed, 6 insertions, 16 deletions
diff --git a/src/common/interface/CommonInterface.hpp b/src/common/interface/CommonInterface.hpp index b0676ac7..3c81a4a3 100644 --- a/src/common/interface/CommonInterface.hpp +++ b/src/common/interface/CommonInterface.hpp @@ -45,18 +45,8 @@ public: /** End (and send) an atomic bundle */ virtual void bundle_end() = 0; - virtual bool new_object(const GraphObject* object) = 0; - - virtual void new_patch(const Raul::Path& path, - uint32_t poly) = 0; - - virtual void new_node(const Raul::Path& path, - const Raul::URI& plugin_uri) = 0; - - virtual void new_port(const Raul::Path& path, - const Raul::URI& type, - uint32_t index, - bool is_output) = 0; + virtual void put(const Raul::Path& path, + const Resource::Properties& properties) = 0; virtual void rename(const Raul::Path& old_path, const Raul::Path& new_path) = 0; diff --git a/src/common/interface/Resource.hpp b/src/common/interface/Resource.hpp index 9fac8d0b..7512bfe7 100644 --- a/src/common/interface/Resource.hpp +++ b/src/common/interface/Resource.hpp @@ -30,11 +30,11 @@ namespace Shared { class Resource { public: - typedef std::map<Raul::URI, Raul::Atom> Properties; + typedef std::multimap<Raul::URI, Raul::Atom> Properties; - virtual const Raul::URI uri() const = 0; - virtual const Properties& properties() const = 0; - virtual Properties& properties() = 0; + virtual const Raul::URI uri() const = 0; + virtual const Properties& properties() const = 0; + virtual Properties& properties() = 0; virtual void set_property(const Raul::URI& uri, const Raul::Atom& value) = 0; |