diff options
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/ResourceImpl.cpp | 12 | ||||
-rw-r--r-- | src/shared/ResourceImpl.hpp | 4 |
2 files changed, 8 insertions, 8 deletions
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<iterator,iterator> 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 <sigc++/sigc++.h> #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); |