aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-11 22:38:01 +0000
committerDavid Robillard <d@drobilla.net>2012-04-11 22:38:01 +0000
commite5b51f9d6ee2ea11524d391f0d7e9fbead614b9e (patch)
tree3cd53a62013dc666f610f42bbc2c8efb2c6e077b
parent73ee88b9cda1cd71e0eba8930afa4f0e41079b04 (diff)
downloadlv2-e5b51f9d6ee2ea11524d391f0d7e9fbead614b9e.tar.xz
Add atom:atomTransfer for (non-event) Atom ports.
-rw-r--r--lv2/lv2plug.in/ns/ext/atom/atom.h3
-rw-r--r--lv2/lv2plug.in/ns/ext/atom/atom.ttl18
2 files changed, 16 insertions, 5 deletions
diff --git a/lv2/lv2plug.in/ns/ext/atom/atom.h b/lv2/lv2plug.in/ns/ext/atom/atom.h
index 3c7bee8..29369ac 100644
--- a/lv2/lv2plug.in/ns/ext/atom/atom.h
+++ b/lv2/lv2plug.in/ns/ext/atom/atom.h
@@ -39,8 +39,8 @@
#define LV2_ATOM__Event LV2_ATOM_PREFIX "Event"
#define LV2_ATOM__Float LV2_ATOM_PREFIX "Float"
#define LV2_ATOM__Int LV2_ATOM_PREFIX "Int"
-#define LV2_ATOM__Long LV2_ATOM_PREFIX "Long"
#define LV2_ATOM__Literal LV2_ATOM_PREFIX "Literal"
+#define LV2_ATOM__Long LV2_ATOM_PREFIX "Long"
#define LV2_ATOM__Number LV2_ATOM_PREFIX "Number"
#define LV2_ATOM__Object LV2_ATOM_PREFIX "Object"
#define LV2_ATOM__Path LV2_ATOM_PREFIX "Path"
@@ -54,6 +54,7 @@
#define LV2_ATOM__URI LV2_ATOM_PREFIX "URI"
#define LV2_ATOM__URID LV2_ATOM_PREFIX "URID"
#define LV2_ATOM__Vector LV2_ATOM_PREFIX "Vector"
+#define LV2_ATOM__atomTransfer LV2_ATOM_PREFIX "atomTransfer"
#define LV2_ATOM__beatTime LV2_ATOM_PREFIX "beatTime"
#define LV2_ATOM__bufferType LV2_ATOM_PREFIX "bufferType"
#define LV2_ATOM__childType LV2_ATOM_PREFIX "childType"
diff --git a/lv2/lv2plug.in/ns/ext/atom/atom.ttl b/lv2/lv2plug.in/ns/ext/atom/atom.ttl
index 1a27389..f58d6fa 100644
--- a/lv2/lv2plug.in/ns/ext/atom/atom.ttl
+++ b/lv2/lv2plug.in/ns/ext/atom/atom.ttl
@@ -21,6 +21,7 @@
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix ui: <http://lv2plug.in/ns/extensions/ui#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://lv2plug.in/ns/ext/atom>
@@ -499,14 +500,23 @@ MIDI events is described like so:</p>
""" .
atom:eventTransfer
- a <http://lv2plug.in/ns/extensions/ui#PortProtocol> ;
+ a ui:PortProtocol ;
lv2:documentation """
-<p>Transfer of individual events. Useful as the
-<code>format</code> for a LV2_UI_Write_Function, or the
-<code>port_protocol</code> for LV2_PUI_Host_Descriptor::write_port().</p>
+<p>Transfer of individual events in a port buffer. Useful as the
+<code>format</code> for a LV2_UI_Write_Function.</p>
<p>This protocol applies to ports which contain events, usually in an
atom:Sequence. The host must transfer each individual event to the recipient.
The format of the received data is an LV2_Atom, there is no timestamp
header.</p>
""" .
+
+atom:atomTransfer
+ a ui:PortProtocol ;
+ lv2:documentation """
+<p>Transfer of the complete atom in a port buffer. Useful as the
+<code>format</code> for a LV2_UI_Write_Function.</p>
+
+<p>This protocol applies to atom ports. The host must transfer the complete
+atom contained in the port, including header.</p>
+""" .