From e5b51f9d6ee2ea11524d391f0d7e9fbead614b9e Mon Sep 17 00:00:00 2001
From: David Robillard
Date: Wed, 11 Apr 2012 22:38:01 +0000
Subject: Add atom:atomTransfer for (non-event) Atom ports.
---
lv2/lv2plug.in/ns/ext/atom/atom.h | 3 ++-
lv2/lv2plug.in/ns/ext/atom/atom.ttl | 18 ++++++++++++++----
2 files changed, 16 insertions(+), 5 deletions(-)
(limited to 'lv2')
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: .
@prefix rdf: .
@prefix rdfs: .
+@prefix ui: .
@prefix xsd: .
@@ -499,14 +500,23 @@ MIDI events is described like so:
""" .
atom:eventTransfer
- a ;
+ a ui:PortProtocol ;
lv2:documentation """
-Transfer of individual events. Useful as the
-format
for a LV2_UI_Write_Function, or the
-port_protocol
for LV2_PUI_Host_Descriptor::write_port().
+Transfer of individual events in a port buffer. Useful as the
+format
for a LV2_UI_Write_Function.
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.
""" .
+
+atom:atomTransfer
+ a ui:PortProtocol ;
+ lv2:documentation """
+Transfer of the complete atom in a port buffer. Useful as the
+format
for a LV2_UI_Write_Function.
+
+This protocol applies to atom ports. The host must transfer the complete
+atom contained in the port, including header.
+""" .
--
cgit v1.2.1