From 8768c927968c2541bcac763d9a4f237081eaca4b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 3 Oct 2011 02:18:42 +0000 Subject: Remove static PortType enumeration from public/client side interface. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3523 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/events/SetMetadata.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/server/events/SetMetadata.cpp') diff --git a/src/server/events/SetMetadata.cpp b/src/server/events/SetMetadata.cpp index bef968fc..4e40baeb 100644 --- a/src/server/events/SetMetadata.cpp +++ b/src/server/events/SetMetadata.cpp @@ -16,11 +16,12 @@ */ #include + #include + #include "raul/log.hpp" #include "raul/Maid.hpp" -#include "ingen/PortType.hpp" -#include "shared/LV2URIMap.hpp" + #include "ClientBroadcaster.hpp" #include "ControlBindings.hpp" #include "CreateNode.hpp" @@ -33,9 +34,11 @@ #include "PatchImpl.hpp" #include "PluginImpl.hpp" #include "PortImpl.hpp" +#include "PortType.hpp" #include "Request.hpp" #include "SetMetadata.hpp" #include "SetPortValue.hpp" +#include "shared/LV2URIMap.hpp" #define LOG(s) s << "[SetMetadata] " @@ -120,8 +123,7 @@ SetMetadata::pre_process() if (is_graph_object && !_object) { Path path(_subject.str()); bool is_patch = false, is_node = false, is_port = false, is_output = false; - PortType data_type(PortType::UNKNOWN); - Shared::ResourceImpl::type(uris, _properties, is_patch, is_node, is_port, is_output, data_type); + Shared::ResourceImpl::type(uris, _properties, is_patch, is_node, is_port, is_output); // Create a separate request without a source so EventSource isn't unblocked twice SharedPtr sub_request(new Request(NULL, _request->client(), _request->id())); @@ -139,7 +141,7 @@ SetMetadata::pre_process() path, p->second.get_uri(), _properties); } else if (is_port) { _create_event = new CreatePort(_engine, sub_request, _time, - path, data_type.uri(), is_output, _properties); + path, is_output, _properties); } if (_create_event) { _create_event->pre_process(); -- cgit v1.2.1