From c11ecf0fd10641218326ae384e80413ba3cdf46c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 27 May 2009 17:42:51 +0000 Subject: 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 --- src/common/interface/CommonInterface.hpp | 14 ++------------ src/common/interface/Resource.hpp | 8 ++++---- 2 files changed, 6 insertions(+), 16 deletions(-) (limited to 'src/common/interface') 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 Properties; + typedef std::multimap 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; -- cgit v1.2.1