summaryrefslogtreecommitdiffstats
path: root/src/server/events/CreatePort.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-10-25 05:10:37 +0000
committerDavid Robillard <d@drobilla.net>2015-10-25 05:10:37 +0000
commit94d2f7cfc7e573c6fdd7487b1ab207d01e9fdbcf (patch)
tree0d2c95c194d95e6e5925c66bbd4c709173421bfd /src/server/events/CreatePort.hpp
parentcbd64a410c165972f13d18e4260bb63b770b3c1f (diff)
downloadingen-94d2f7cfc7e573c6fdd7487b1ab207d01e9fdbcf.tar.gz
ingen-94d2f7cfc7e573c6fdd7487b1ab207d01e9fdbcf.tar.bz2
ingen-94d2f7cfc7e573c6fdd7487b1ab207d01e9fdbcf.zip
Create all graphs the same way
This ensures that subgraphs always have the standard control ports, so they are valid Ingen graphs on their own.. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5783 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/events/CreatePort.hpp')
-rw-r--r--src/server/events/CreatePort.hpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/server/events/CreatePort.hpp b/src/server/events/CreatePort.hpp
index f9f1b6fa..a2dd55ce 100644
--- a/src/server/events/CreatePort.hpp
+++ b/src/server/events/CreatePort.hpp
@@ -17,6 +17,8 @@
#ifndef INGEN_EVENTS_CREATEPORT_HPP
#define INGEN_EVENTS_CREATEPORT_HPP
+#include <boost/optional.hpp>
+
#include "ingen/Resource.hpp"
#include "lv2/lv2plug.in/ns/ext/urid/urid.h"
#include "raul/Array.hpp"
@@ -47,7 +49,6 @@ public:
int32_t id,
SampleCount timestamp,
const Raul::Path& path,
- bool is_output,
const Resource::Properties& properties);
bool pre_process();
@@ -55,6 +56,11 @@ public:
void post_process();
private:
+ enum class Flow {
+ INPUT,
+ OUTPUT
+ };
+
Raul::Path _path;
PortType _port_type;
LV2_URID _buf_type;
@@ -65,7 +71,7 @@ private:
EnginePort* _engine_port; ///< Driver port if on the root
Resource::Properties _properties;
Resource::Properties _update;
- bool _is_output;
+ boost::optional<Flow> _flow;
};
} // namespace Events