summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-11-14 20:44:40 +0000
committerDavid Robillard <d@drobilla.net>2009-11-14 20:44:40 +0000
commit6ae2018e81e7e81e4906e62dc6224ad34298d9c2 (patch)
tree11286438977c4f975b5148dc93b5f4dfafabdbdc /src/common
parentcfec427867f42d7aa7bea6dfbb0736b5ce99e9e2 (diff)
downloadingen-6ae2018e81e7e81e4906e62dc6224ad34298d9c2.tar.gz
ingen-6ae2018e81e7e81e4906e62dc6224ad34298d9c2.tar.bz2
ingen-6ae2018e81e7e81e4906e62dc6224ad34298d9c2.zip
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
Diffstat (limited to 'src/common')
l---------src/common/contexts.lv21
-rw-r--r--src/common/interface/DataType.hpp20
l---------src/common/object.lv21
l---------src/common/resize-port.lv21
4 files changed, 14 insertions, 9 deletions
diff --git a/src/common/contexts.lv2 b/src/common/contexts.lv2
new file mode 120000
index 00000000..acc4d68c
--- /dev/null
+++ b/src/common/contexts.lv2
@@ -0,0 +1 @@
+../../../lv2/dev/contexts.lv2 \ No newline at end of file
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 "";
}
}
diff --git a/src/common/object.lv2 b/src/common/object.lv2
new file mode 120000
index 00000000..08017748
--- /dev/null
+++ b/src/common/object.lv2
@@ -0,0 +1 @@
+../../../lv2/dev/object.lv2 \ No newline at end of file
diff --git a/src/common/resize-port.lv2 b/src/common/resize-port.lv2
new file mode 120000
index 00000000..89bdbf96
--- /dev/null
+++ b/src/common/resize-port.lv2
@@ -0,0 +1 @@
+../../../lv2/dev/resize-port.lv2 \ No newline at end of file