summaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-11-15 03:17:26 +0000
committerDavid Robillard <d@drobilla.net>2009-11-15 03:17:26 +0000
commit597fa9212f27d2448c0cdd20fbf616928c662cc1 (patch)
treed761421a2a7eaa55761ebdf48b794ccf6489cb95 /src/shared
parent6ae2018e81e7e81e4906e62dc6224ad34298d9c2 (diff)
downloadingen-597fa9212f27d2448c0cdd20fbf616928c662cc1.tar.gz
ingen-597fa9212f27d2448c0cdd20fbf616928c662cc1.tar.bz2
ingen-597fa9212f27d2448c0cdd20fbf616928c662cc1.zip
Better Parse plugin, working Print plugin.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2262 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/LV2Object.cpp3
-rw-r--r--src/shared/ResourceImpl.cpp4
2 files changed, 5 insertions, 2 deletions
diff --git a/src/shared/LV2Object.cpp b/src/shared/LV2Object.cpp
index 3442c004..54c81429 100644
--- a/src/shared/LV2Object.cpp
+++ b/src/shared/LV2Object.cpp
@@ -39,6 +39,9 @@ to_atom(World* world, LV2_Object* object, Raul::Atom& atom)
if (object->type == map->object_class_string) {
atom = Raul::Atom((char*)(object + 1));
return true;
+ } else if (object->type == map->object_class_bool) {
+ atom = Raul::Atom((bool)(int32_t*)(object + 1));
+ return true;
} else if (object->type == map->object_class_int32) {
atom = Raul::Atom((int32_t*)(object + 1));
return true;
diff --git a/src/shared/ResourceImpl.cpp b/src/shared/ResourceImpl.cpp
index 6d028a13..0d773be4 100644
--- a/src/shared/ResourceImpl.cpp
+++ b/src/shared/ResourceImpl.cpp
@@ -112,8 +112,8 @@ ResourceImpl::type(
} else if (!strcmp(atom.get_uri(), "lv2ev:EventPort")) {
data_type = DataType::EVENTS;
port = true;
- } else if (!strcmp(atom.get_uri(), "obj:ObjectPort")) {
- data_type = DataType::OBJECT;
+ } else if (!strcmp(atom.get_uri(), "obj:ValuePort")) {
+ data_type = DataType::VALUE;
port = true;
}
}