summaryrefslogtreecommitdiffstats
path: root/src/server/EnginePort.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-11 05:14:11 +0000
committerDavid Robillard <d@drobilla.net>2012-05-11 05:14:11 +0000
commite684838068b6f8b37fe130195cdeb3a0f3b17ffd (patch)
treec3896b4039b875157a03d49f698a848c37957361 /src/server/EnginePort.hpp
parente64eabe64ee966364bc5f6704c5227687ea309d8 (diff)
downloadingen-e684838068b6f8b37fe130195cdeb3a0f3b17ffd.tar.gz
ingen-e684838068b6f8b37fe130195cdeb3a0f3b17ffd.tar.bz2
ingen-e684838068b6f8b37fe130195cdeb3a0f3b17ffd.zip
Move buffer stuff down to EnginePort.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4351 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/EnginePort.hpp')
-rw-r--r--src/server/EnginePort.hpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/server/EnginePort.hpp b/src/server/EnginePort.hpp
index 39f25d5c..7ba58871 100644
--- a/src/server/EnginePort.hpp
+++ b/src/server/EnginePort.hpp
@@ -19,9 +19,8 @@
#include <string>
-#include <boost/utility.hpp>
-
#include "raul/Deletable.hpp"
+#include "raul/Noncopyable.hpp"
#include "DuplexPort.hpp"
@@ -33,7 +32,7 @@ namespace Server {
class DuplexPort;
class ProcessContext;
-/** Representation of a "system" (eg outside Ingen) port.
+/** Representation of a "system" port (a port outside Ingen).
*
* This is the class through which the rest of the engine manages everything
* related to driver ports. Derived classes are expected to have a pointer to
@@ -41,8 +40,9 @@ class ProcessContext;
*
* \ingroup engine
*/
-class EnginePort : boost::noncopyable, public Raul::Deletable {
+class EnginePort : public Raul::Noncopyable, public Raul::Deletable {
public:
+ EnginePort() : _patch_port(NULL), _buffer(NULL) {}
virtual ~EnginePort() {}
/** Set the name of the system port according to new path */
@@ -54,6 +54,9 @@ public:
/** Destroy system port */
virtual void destroy() = 0;
+ void* buffer() const { return _buffer; }
+ void set_buffer(void* buf) { _buffer = buf; }
+
bool is_input() const { return _patch_port->is_input(); }
DuplexPort* patch_port() const { return _patch_port; }
@@ -61,6 +64,7 @@ protected:
explicit EnginePort(DuplexPort* port) : _patch_port(port) {}
DuplexPort* _patch_port;
+ void* _buffer;
};
} // namespace Server