From 6ae2018e81e7e81e4906e62dc6224ad34298d9c2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 14 Nov 2009 20:44:40 +0000 Subject: Object extension. Port resize extension. Sensible extension(s) implementation design for Ingen. Replace string port extension support in Ingen with Object port extension. Implement port resize extension in Ingen. Some test plugins for this stuff. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2260 a436a847-0d15-0410-975c-d299462d15a1 --- src/common/interface/DataType.hpp | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'src/common/interface') diff --git a/src/common/interface/DataType.hpp b/src/common/interface/DataType.hpp index 4590a9a1..15cdc591 100644 --- a/src/common/interface/DataType.hpp +++ b/src/common/interface/DataType.hpp @@ -39,10 +39,11 @@ public: UNKNOWN = 0, AUDIO = 1, CONTROL = 2, - EVENT = 3, + EVENTS = 3, //MIDI = 4, //OSC = 5, - STRING = 6 + //STRING = 6, + OBJECT = 7 }; DataType(const Raul::URI& uri) @@ -52,10 +53,10 @@ public: _symbol = AUDIO; } else if (uri.str() == type_uri(CONTROL)) { _symbol = CONTROL; - } else if (uri.str() == type_uri(EVENT)) { - _symbol = EVENT; - } else if (uri.str() == type_uri(STRING)) { - _symbol = STRING; + } else if (uri.str() == type_uri(EVENTS)) { + _symbol = EVENTS; + } else if (uri.str() == type_uri(OBJECT)) { + _symbol = OBJECT; } } @@ -73,8 +74,8 @@ public: inline bool is_audio() { return _symbol == AUDIO; } inline bool is_control() { return _symbol == CONTROL; } - inline bool is_event() { return _symbol == EVENT; } - inline bool is_string() { return _symbol == STRING; } + inline bool is_events() { return _symbol == EVENTS; } + inline bool is_object() { return _symbol == OBJECT; } private: @@ -85,7 +86,8 @@ private: case 3: return "lv2ev:EventPort"; case 4: return "lv2ev:EventPort"; // MIDI (no longer used) case 5: return "lv2ev:EventPort"; // OSC (no longer used) - case 6: return "sp:StringPort"; + case 6: return "sp:StringPort"; // String Port (no longer used) + case 7: return "obj:ObjectPort"; default: return ""; } } -- cgit v1.2.1