From 6ec390d53a3dbea90e7308c9e40e03266f5d5127 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 18 Nov 2009 00:38:45 +0000 Subject: Rename DataType to PortType (since that's what it really means). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2273 a436a847-0d15-0410-975c-d299462d15a1 --- src/shared/ResourceImpl.cpp | 12 ++++++------ src/shared/ResourceImpl.hpp | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/shared') diff --git a/src/shared/ResourceImpl.cpp b/src/shared/ResourceImpl.cpp index 0d773be4..5f23caf3 100644 --- a/src/shared/ResourceImpl.cpp +++ b/src/shared/ResourceImpl.cpp @@ -76,13 +76,13 @@ ResourceImpl::type( const Properties& properties, bool& patch, bool& node, - bool& port, bool& is_output, DataType& data_type) + bool& port, bool& is_output, PortType& data_type) { typedef Resource::Properties::const_iterator iterator; const std::pair types_range = properties.equal_range("rdf:type"); patch = node = port = is_output = false; - data_type = DataType::UNKNOWN; + data_type = PortType::UNKNOWN; for (iterator i = types_range.first; i != types_range.second; ++i) { const Atom& atom = i->second; if (atom.type() == Atom::URI) { @@ -103,17 +103,17 @@ ResourceImpl::type( is_output = true; port = true; } else if (!strcmp(suffix, "AudioPort")) { - data_type = DataType::AUDIO; + data_type = PortType::AUDIO; port = true; } else if (!strcmp(suffix, "ControlPort")) { - data_type = DataType::CONTROL; + data_type = PortType::CONTROL; port = true; } } else if (!strcmp(atom.get_uri(), "lv2ev:EventPort")) { - data_type = DataType::EVENTS; + data_type = PortType::EVENTS; port = true; } else if (!strcmp(atom.get_uri(), "obj:ValuePort")) { - data_type = DataType::VALUE; + data_type = PortType::VALUE; port = true; } } diff --git a/src/shared/ResourceImpl.hpp b/src/shared/ResourceImpl.hpp index 36d4305e..9b10ec15 100644 --- a/src/shared/ResourceImpl.hpp +++ b/src/shared/ResourceImpl.hpp @@ -22,7 +22,7 @@ #include #include "raul/URI.hpp" #include "interface/Resource.hpp" -#include "interface/DataType.hpp" +#include "interface/PortType.hpp" namespace Ingen { namespace Shared { @@ -53,7 +53,7 @@ public: const Properties& properties, bool& patch, bool& node, - bool& port, bool& is_output, DataType& data_type); + bool& port, bool& is_output, PortType& data_type); static const Raul::URI meta_uri(const Raul::URI& base, const Raul::URI& uri); -- cgit v1.2.1