From df8ee18c0139f889bf7c697713a2205364845464 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 25 Jan 2008 06:55:57 +0000 Subject: Overhaul SLV2 API to return/take SLV2Value (instead of strings or primitives) wherever possible. Make 'index' a fundemental property of ingen ports. git-svn-id: http://svn.drobilla.net/lad/ingen@1113 a436a847-0d15-0410-975c-d299462d15a1 --- src/common/interface/ClientInterface.hpp | 1 + src/common/interface/Port.hpp | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src/common') diff --git a/src/common/interface/ClientInterface.hpp b/src/common/interface/ClientInterface.hpp index 80044caf..0da613c7 100644 --- a/src/common/interface/ClientInterface.hpp +++ b/src/common/interface/ClientInterface.hpp @@ -86,6 +86,7 @@ public: uint32_t num_ports) = 0; virtual void new_port(const std::string& path, + uint32_t index, const std::string& data_type, bool is_output) = 0; diff --git a/src/common/interface/Port.hpp b/src/common/interface/Port.hpp index 7667b385..b7305519 100644 --- a/src/common/interface/Port.hpp +++ b/src/common/interface/Port.hpp @@ -35,9 +35,10 @@ namespace Shared { class Port : public virtual GraphObject { public: - virtual bool is_input() const = 0; - virtual DataType type() const = 0; - virtual Raul::Atom value() const = 0; + virtual uint32_t index() const = 0; + virtual bool is_input() const = 0; + virtual DataType type() const = 0; + virtual const Raul::Atom& value() const = 0; }; -- cgit v1.2.1