diff options
author | David Robillard <d@drobilla.net> | 2009-11-18 00:38:45 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-11-18 00:38:45 +0000 |
commit | 6ec390d53a3dbea90e7308c9e40e03266f5d5127 (patch) | |
tree | 964973527778b5b2b28f8a5ebf63057fb7651d36 /src/engine/Buffer.hpp | |
parent | 1a725c0811fd15900464e1eff429c6ead90805d4 (diff) | |
download | ingen-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/engine/Buffer.hpp')
-rw-r--r-- | src/engine/Buffer.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/engine/Buffer.hpp b/src/engine/Buffer.hpp index f566f9b6..94589dac 100644 --- a/src/engine/Buffer.hpp +++ b/src/engine/Buffer.hpp @@ -24,7 +24,7 @@ #include "raul/Deletable.hpp" #include "raul/SharedPtr.hpp" #include "types.hpp" -#include "interface/DataType.hpp" +#include "interface/PortType.hpp" namespace Ingen { @@ -34,7 +34,7 @@ class Engine; class Buffer : public boost::noncopyable, public Raul::Deletable { public: - Buffer(Shared::DataType type, size_t size) + Buffer(Shared::PortType type, size_t size) : _type(type) , _size(size) {} @@ -44,8 +44,8 @@ public: virtual void resize(size_t size) { _size = size; } - virtual void* port_data(Shared::DataType port_type) = 0; - virtual const void* port_data(Shared::DataType port_type) const = 0; + virtual void* port_data(Shared::PortType port_type) = 0; + virtual const void* port_data(Shared::PortType port_type) const = 0; /** Rewind (ie reset read pointer), but leave contents unchanged */ virtual void rewind() const {} @@ -56,11 +56,11 @@ public: virtual void prepare_read(Context& context) {} virtual void prepare_write(Context& context) {} - Shared::DataType type() const { return _type; } + Shared::PortType type() const { return _type; } size_t size() const { return _size; } protected: - Shared::DataType _type; + Shared::PortType _type; size_t _size; bool _local; |