summaryrefslogtreecommitdiffstats
path: root/src/server/Driver.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-09 12:22:59 +0000
committerDavid Robillard <d@drobilla.net>2012-05-09 12:22:59 +0000
commited80c779a6085ce62b9f61a28263607983db93a1 (patch)
tree4bab2fa47443068fa9fbae3598131289982d1cd3 /src/server/Driver.hpp
parentba2e3fac36f4db4ec4c27775f1a2246c111ce403 (diff)
downloadingen-ed80c779a6085ce62b9f61a28263607983db93a1.tar.gz
ingen-ed80c779a6085ce62b9f61a28263607983db93a1.tar.bz2
ingen-ed80c779a6085ce62b9f61a28263607983db93a1.zip
DriverPort => EnginePort.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4327 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/Driver.hpp')
-rw-r--r--src/server/Driver.hpp40
1 files changed, 5 insertions, 35 deletions
diff --git a/src/server/Driver.hpp b/src/server/Driver.hpp
index cce1be7e..77d49234 100644
--- a/src/server/Driver.hpp
+++ b/src/server/Driver.hpp
@@ -31,37 +31,7 @@ namespace Ingen {
namespace Server {
class DuplexPort;
-class ProcessContext;
-
-/** Representation of a "system" (eg outside Ingen) port.
- *
- * 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
- * their driver (to be able to perform the operation necessary).
- *
- * \ingroup engine
- */
-class DriverPort : boost::noncopyable, public Raul::Deletable {
-public:
- virtual ~DriverPort() {}
-
- /** Set the name of the system port according to new path */
- virtual void move(const Raul::Path& path) = 0;
-
- /** Create system port */
- virtual void create() = 0;
-
- /** Destroy system port */
- virtual void destroy() = 0;
-
- bool is_input() const { return _patch_port->is_input(); }
- DuplexPort* patch_port() const { return _patch_port; }
-
-protected:
- explicit DriverPort(DuplexPort* port) : _patch_port(port) {}
-
- DuplexPort* _patch_port;
-};
+class EnginePort;
/** Driver abstract base class.
*
@@ -84,17 +54,17 @@ public:
/** Create a port ready to be inserted with add_input (non realtime).
* May return NULL if the Driver can not create the port for some reason.
*/
- virtual DriverPort* create_port(DuplexPort* patch_port) = 0;
+ virtual EnginePort* create_port(DuplexPort* patch_port) = 0;
/** Return the DriverPort for a particular path, iff one exists. */
- virtual DriverPort* driver_port(const Raul::Path& path) = 0;
+ virtual EnginePort* engine_port(const Raul::Path& path) = 0;
/** Add a system visible port (e.g. a port on the root patch). */
- virtual void add_port(DriverPort* port) = 0;
+ virtual void add_port(EnginePort* port) = 0;
/** Remove a system visible port. */
virtual Raul::Deletable* remove_port(const Raul::Path& path,
- DriverPort** port=NULL) = 0;
+ EnginePort** port=NULL) = 0;
/** Return the audio buffer size in frames */
virtual SampleCount block_length() const = 0;