summaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-11-18 00:38:45 +0000
committerDavid Robillard <d@drobilla.net>2009-11-18 00:38:45 +0000
commit6ec390d53a3dbea90e7308c9e40e03266f5d5127 (patch)
tree964973527778b5b2b28f8a5ebf63057fb7651d36 /src/shared
parent1a725c0811fd15900464e1eff429c6ead90805d4 (diff)
downloadingen-6ec390d53a3dbea90e7308c9e40e03266f5d5127.tar.gz
ingen-6ec390d53a3dbea90e7308c9e40e03266f5d5127.tar.bz2
ingen-6ec390d53a3dbea90e7308c9e40e03266f5d5127.zip
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
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/ResourceImpl.cpp12
-rw-r--r--src/shared/ResourceImpl.hpp4
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);