From b1d4027b58465d9cc31d6cb1be05a7ff4f202711 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 22 May 2012 03:30:42 +0000 Subject: More work on test suite. Clean up, simplify, and shrink event code. Support disconnect_all via Atom protocol. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4432 a436a847-0d15-0410-975c-d299462d15a1 --- ingen/shared/AtomReader.hpp | 3 ++- ingen/shared/AtomSink.hpp | 6 +++++- ingen/shared/URIs.hpp | 2 ++ 3 files changed, 9 insertions(+), 2 deletions(-) (limited to 'ingen/shared') diff --git a/ingen/shared/AtomReader.hpp b/ingen/shared/AtomReader.hpp index 2887aad1..1386d3ba 100644 --- a/ingen/shared/AtomReader.hpp +++ b/ingen/shared/AtomReader.hpp @@ -38,10 +38,11 @@ public: AtomReader(URIMap& map, URIs& uris, Forge& forge, Interface& iface); ~AtomReader() {} - void write(const LV2_Atom* msg); + bool write(const LV2_Atom* msg); private: void get_atom(const LV2_Atom* in, Raul::Atom& out); + const char* atom_to_uri(const LV2_Atom* atom); void get_props(const LV2_Atom_Object* obj, Ingen::Resource::Properties& props); diff --git a/ingen/shared/AtomSink.hpp b/ingen/shared/AtomSink.hpp index b4694926..f25e6548 100644 --- a/ingen/shared/AtomSink.hpp +++ b/ingen/shared/AtomSink.hpp @@ -28,7 +28,11 @@ namespace Shared { class AtomSink { public: virtual ~AtomSink() {} - virtual void write(const LV2_Atom* msg) = 0; + + /** Write an Atom to the sink. + * @return True on success. + */ + virtual bool write(const LV2_Atom* msg) = 0; }; } // namespace Shared diff --git a/ingen/shared/URIs.hpp b/ingen/shared/URIs.hpp index 7b89c2ba..c1eec103 100644 --- a/ingen/shared/URIs.hpp +++ b/ingen/shared/URIs.hpp @@ -59,6 +59,7 @@ public: const Quark atom_Bool; const Quark atom_Float; const Quark atom_Int; + const Quark atom_Resource; const Quark atom_Sequence; const Quark atom_Sound; const Quark atom_String; @@ -82,6 +83,7 @@ public: const Quark ingen_enabled; const Quark ingen_engine; const Quark ingen_head; + const Quark ingen_incidentTo; const Quark ingen_nil; const Quark ingen_node; const Quark ingen_polyphonic; -- cgit v1.2.1