From 5a413b8cd31006c8836bcc7409f7055c890f8a68 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 21 Oct 2011 23:30:39 +0000 Subject: Move uri() to CommonInterface. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3575 a436a847-0d15-0410-975c-d299462d15a1 --- include/ingen/ClientInterface.hpp | 2 -- include/ingen/CommonInterface.hpp | 2 ++ include/ingen/ServerInterface.hpp | 2 -- include/ingen/client/ClientStore.hpp | 2 ++ include/ingen/shared/ClashAvoider.hpp | 2 ++ 5 files changed, 6 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/ingen/ClientInterface.hpp b/include/ingen/ClientInterface.hpp index a2086926..a72c4743 100644 --- a/include/ingen/ClientInterface.hpp +++ b/include/ingen/ClientInterface.hpp @@ -40,8 +40,6 @@ class ClientInterface : public CommonInterface public: virtual ~ClientInterface() {} - virtual Raul::URI uri() const = 0; - virtual void response_ok(int32_t id) = 0; virtual void response_error(int32_t id, const std::string& msg) = 0; diff --git a/include/ingen/CommonInterface.hpp b/include/ingen/CommonInterface.hpp index 8b4713ab..398fbd3b 100644 --- a/include/ingen/CommonInterface.hpp +++ b/include/ingen/CommonInterface.hpp @@ -34,6 +34,8 @@ class CommonInterface public: virtual ~CommonInterface() {} + virtual Raul::URI uri() const = 0; + /** Begin an atomic bundle */ virtual void bundle_begin() = 0; diff --git a/include/ingen/ServerInterface.hpp b/include/ingen/ServerInterface.hpp index bf0b45ec..25016416 100644 --- a/include/ingen/ServerInterface.hpp +++ b/include/ingen/ServerInterface.hpp @@ -36,8 +36,6 @@ class ServerInterface : public CommonInterface public: virtual ~ServerInterface() {} - virtual Raul::URI uri() const = 0; - // Responses virtual void respond_to(ClientInterface* client, int32_t id) = 0; virtual void disable_responses() = 0; diff --git a/include/ingen/client/ClientStore.hpp b/include/ingen/client/ClientStore.hpp index a79b235c..12392db6 100644 --- a/include/ingen/client/ClientStore.hpp +++ b/include/ingen/client/ClientStore.hpp @@ -60,6 +60,8 @@ public: SharedPtr engine=SharedPtr(), SharedPtr emitter=SharedPtr()); + Raul::URI uri() const { return "ingen:ClientStore"; } + SharedPtr object(const Raul::Path& path) const; SharedPtr plugin(const Raul::URI& uri) const; SharedPtr resource(const Raul::URI& uri) const; diff --git a/include/ingen/shared/ClashAvoider.hpp b/include/ingen/shared/ClashAvoider.hpp index 6c8e2018..4f5d8ec1 100644 --- a/include/ingen/shared/ClashAvoider.hpp +++ b/include/ingen/shared/ClashAvoider.hpp @@ -40,6 +40,8 @@ public: ClashAvoider(Store& store, CommonInterface& target, Store* also_avoid=NULL) : _store(store), _target(target), _also_avoid(also_avoid) {} + Raul::URI uri() const { return "ingen:ClientStore"; } + void set_target(CommonInterface& target) { _target = target; } // Bundles -- cgit v1.2.1