From a0320122b94a8c92cd780f8d3c9da7260ec400e6 Mon Sep 17 00:00:00 2001
From: David Robillard
Date: Sun, 6 Nov 2011 17:44:39 +0000
Subject: Typedef void* callback_data parameter.
---
ext/atom.lv2/atom.h | 2 +-
ext/atom.lv2/atom.ttl | 22 ++++++++++++----------
ext/atom.lv2/manifest.ttl | 2 +-
ext/state.lv2/state.h | 30 +++++++++++++++---------------
4 files changed, 29 insertions(+), 27 deletions(-)
(limited to 'ext')
diff --git a/ext/atom.lv2/atom.h b/ext/atom.lv2/atom.h
index 4f803ba..ed5ddd8 100644
--- a/ext/atom.lv2/atom.h
+++ b/ext/atom.lv2/atom.h
@@ -208,6 +208,6 @@ typedef struct {
*/
uint32_t size;
-} LV2_Atom_Event_Buffer;
+} LV2_Atom_Buffer;
#endif /* LV2_ATOM_H */
diff --git a/ext/atom.lv2/atom.ttl b/ext/atom.lv2/atom.ttl
index 139155f..d999518 100644
--- a/ext/atom.lv2/atom.ttl
+++ b/ext/atom.lv2/atom.ttl
@@ -25,9 +25,10 @@
a lv2:Specification ;
doap:name "LV2 Atom" ;
doap:shortdesc "A generic value container and several data types." ;
+ rdfs:seeAlso ;
doap:release [
- doap:revision "0.1" ;
- doap:created "2011-04-05"
+ doap:revision "0.2" ;
+ doap:created "2011-11-05"
] ;
doap:maintainer [
a foaf:Person ;
@@ -66,15 +67,16 @@ to a single Atom: ValuePort and MessagePort, which both have the same buffer format but different
semantics (with respect to how the run() callback interprets the Atom).
-This extension requires the host to support the LV2 URI Map extension.
+Implementing this extension requires a facility for mapping URIs to
+integers, such as the LV2 URID
+extension.
""" .
atom:Atom
a rdfs:Class ;
rdfs:label "Atom" ;
lv2:documentation """
-Abstract base class for all atoms. An LV2_Atom has a 16-bit
+
Abstract base class for all atoms. An LV2_Atom has a 32-bit
type
and size
followed by a body
of
size
bytes.
@@ -407,11 +409,11 @@ atom:EventPort
rdfs:label "Event port" ;
rdfs:subClassOf lv2:Port ;
lv2:documentation """
-Ports of this type will be connected to an LV2_Atom_Event_Buffer. These ports
-contain a sequence of atom:Event (i.e. time stamped atoms). These ports are
-used to send and receive atoms in the audio context
-(i.e. LV2_Descriptor::run()), and are intended as a simpler, more generic, and
-atom compatible successor to Events.
+
+This port type is intended as a simpler and atom compatible successor to ev:EventPort.
""" .
diff --git a/ext/atom.lv2/manifest.ttl b/ext/atom.lv2/manifest.ttl
index d8488b1..adb10e5 100644
--- a/ext/atom.lv2/manifest.ttl
+++ b/ext/atom.lv2/manifest.ttl
@@ -4,6 +4,6 @@
a lv2:Specification ;
lv2:minorVersion 0 ;
- lv2:microVersion 1 ;
+ lv2:microVersion 2 ;
rdfs:seeAlso .
diff --git a/ext/state.lv2/state.h b/ext/state.lv2/state.h
index 56ebfda..f52b375 100644
--- a/ext/state.lv2/state.h
+++ b/ext/state.lv2/state.h
@@ -35,6 +35,8 @@ extern "C" {
#define LV2_STATE_URI "http://lv2plug.in/ns/ext/state"
+typedef void* LV2_State_Handle;
+
/**
Flags describing value characteristics.
@@ -106,13 +108,12 @@ typedef enum {
The plugin MUST NOT attempt to use this function outside of the
LV2_State_Interface.restore() context.
*/
-typedef int (*LV2_State_Store_Function)(
- void* callback_data,
- uint32_t key,
- const void* value,
- size_t size,
- uint32_t type,
- uint32_t flags);
+typedef int (*LV2_State_Store_Function)(LV2_State_Handle* handle,
+ uint32_t key,
+ const void* value,
+ size_t size,
+ uint32_t type,
+ uint32_t flags);
/**
A host-provided function to retrieve a property.
@@ -138,12 +139,11 @@ typedef int (*LV2_State_Store_Function)(
copied for later use if necessary, assuming the plugin knows how to do so
correctly (e.g. the value is POD, or the plugin understands the type).
*/
-typedef const void* (*LV2_State_Retrieve_Function)(
- void* callback_data,
- uint32_t key,
- size_t* size,
- uint32_t* type,
- uint32_t* flags);
+typedef const void* (*LV2_State_Retrieve_Function)(LV2_State_Handle handle,
+ uint32_t key,
+ size_t* size,
+ uint32_t* type,
+ uint32_t* flags);
/**
State Extension Data.
@@ -207,7 +207,7 @@ typedef struct _LV2_State_Interface {
*/
void (*save)(LV2_Handle instance,
LV2_State_Store_Function store,
- void* callback_data,
+ LV2_State_Handle handle,
uint32_t flags);
/**
@@ -236,7 +236,7 @@ typedef struct _LV2_State_Interface {
*/
void (*restore)(LV2_Handle instance,
LV2_State_Retrieve_Function retrieve,
- void* callback_data,
+ LV2_State_Handle handle,
uint32_t flags);
} LV2_State_Interface;
--
cgit v1.2.1