aboutsummaryrefslogtreecommitdiffstats
path: root/lv2/lv2plug.in/ns/ext
diff options
context:
space:
mode:
Diffstat (limited to 'lv2/lv2plug.in/ns/ext')
-rw-r--r--lv2/lv2plug.in/ns/ext/atom/atom-test.c2
-rw-r--r--lv2/lv2plug.in/ns/ext/data-access/data-access.h6
-rw-r--r--lv2/lv2plug.in/ns/ext/dynmanifest/dynmanifest.h36
-rw-r--r--lv2/lv2plug.in/ns/ext/event/event.h40
-rw-r--r--lv2/lv2plug.in/ns/ext/uri-map/uri-map.h12
5 files changed, 48 insertions, 48 deletions
diff --git a/lv2/lv2plug.in/ns/ext/atom/atom-test.c b/lv2/lv2plug.in/ns/ext/atom/atom-test.c
index d2762f3..693ec92 100644
--- a/lv2/lv2plug.in/ns/ext/atom/atom-test.c
+++ b/lv2/lv2plug.in/ns/ext/atom/atom-test.c
@@ -283,7 +283,7 @@ main()
}
++n_events;
}
-
+
unsigned n_props = 0;
LV2_ATOM_OBJECT_FOREACH((LV2_Atom_Object*)obj, prop) {
if (!prop->key) {
diff --git a/lv2/lv2plug.in/ns/ext/data-access/data-access.h b/lv2/lv2plug.in/ns/ext/data-access/data-access.h
index fac6974..244204a 100644
--- a/lv2/lv2plug.in/ns/ext/data-access/data-access.h
+++ b/lv2/lv2plug.in/ns/ext/data-access/data-access.h
@@ -31,7 +31,7 @@
/**
The data field of the LV2_Feature for this extension.
-
+
To support this feature the host must pass an LV2_Feature struct to the
instantiate method with URI "http://lv2plug.in/ns/ext/data-access"
and data pointed to an instance of this struct.
@@ -40,11 +40,11 @@ typedef struct {
/**
A pointer to a method the UI can call to get data (of a type specified
by some other extension) from the plugin.
-
+
This call never is never guaranteed to return anything, UIs should
degrade gracefully if direct access to the plugin data is not possible
(in which case this function will return NULL).
-
+
This is for access to large data that can only possibly work if the UI
and plugin are running in the same process. For all other things, use
the normal LV2 UI communication system.
diff --git a/lv2/lv2plug.in/ns/ext/dynmanifest/dynmanifest.h b/lv2/lv2plug.in/ns/ext/dynmanifest/dynmanifest.h
index 51908b7..b62f8ef 100644
--- a/lv2/lv2plug.in/ns/ext/dynmanifest/dynmanifest.h
+++ b/lv2/lv2plug.in/ns/ext/dynmanifest/dynmanifest.h
@@ -37,7 +37,7 @@ extern "C" {
/**
Dynamic manifest generator handle.
-
+
This handle indicates a particular status of a dynamic manifest generator.
The host MUST NOT attempt to interpret it and, unlikely LV2_Handle, it is
NOT even valid to compare this to NULL. The dynamic manifest generator MAY
@@ -47,16 +47,16 @@ typedef void * LV2_Dyn_Manifest_Handle;
/**
Generate the dynamic manifest.
-
+
@param handle Pointer to an uninitialized dynamic manifest generator handle.
-
+
@param features NULL terminated array of LV2_Feature structs which represent
the features the host supports. The dynamic manifest generator may refuse to
(re)generate the dynamic manifest if required features are not found here
(however hosts SHOULD NOT use this as a discovery mechanism, instead of
reading the static manifest file). This array must always exist; if a host
has no features, it MUST pass a single element array containing NULL.
-
+
@return 0 on success, otherwise a non-zero error code. The host SHOULD
evaluate the result of the operation by examining the returned value and
MUST NOT try to interpret the value of handle.
@@ -66,25 +66,25 @@ int lv2_dyn_manifest_open(LV2_Dyn_Manifest_Handle * handle,
/**
Fetch a "list" of subject URIs described in the dynamic manifest.
-
+
The dynamic manifest generator has to fill the resource only with the needed
triples to make the host aware of the "objects" it wants to expose. For
example, if the plugin library exposes a regular LV2 plugin, it should
output only a triple like the following:
-
+
<http://www.example.com/plugin/uri> a lv2:Plugin .
-
+
The objects that are elegible for exposure are those that would need to be
represented by a subject node in a static manifest.
-
+
@param handle Dynamic manifest generator handle.
-
+
@param fp FILE * identifying the resource the host has to set up for the
dynamic manifest generator. The host MUST pass a writable, empty resource to
this function, and the dynamic manifest generator MUST ONLY perform write
operations on it at the end of the stream (e.g., using only fprintf(),
fwrite() and similar).
-
+
@return 0 on success, otherwise a non-zero error code.
*/
int lv2_dyn_manifest_get_subjects(LV2_Dyn_Manifest_Handle handle,
@@ -92,7 +92,7 @@ int lv2_dyn_manifest_get_subjects(LV2_Dyn_Manifest_Handle handle,
/**
Function that fetches data related to a specific URI.
-
+
The dynamic manifest generator has to fill the resource with data related to
object represented by the given URI. For example, if the library exposes a
regular LV2 plugin whose URI, as retrieved by the host using
@@ -106,18 +106,18 @@ int lv2_dyn_manifest_get_subjects(LV2_Dyn_Manifest_Handle handle,
lv2:binary <mylib.so> ;
etc:etc "..." .
</pre>
-
+
@param handle Dynamic manifest generator handle.
-
+
@param fp FILE * identifying the resource the host has to set up for the
dynamic manifest generator. The host MUST pass a writable resource to this
function, and the dynamic manifest generator MUST ONLY perform write
operations on it at the current position of the stream (e.g. using only
fprintf(), fwrite() and similar).
-
+
@param uri URI to get data about (in the "plain" form, i.e., absolute URI
without Turtle prefixes).
-
+
@return 0 on success, otherwise a non-zero error code.
*/
int lv2_dyn_manifest_get_data(LV2_Dyn_Manifest_Handle handle,
@@ -126,13 +126,13 @@ int lv2_dyn_manifest_get_data(LV2_Dyn_Manifest_Handle handle,
/**
Function that ends the operations on the dynamic manifest generator.
-
+
This function SHOULD be used by the dynamic manifest generator to perform
cleanup operations, etc.
-
+
Once this function is called, referring to handle will cause undefined
behavior.
-
+
@param handle Dynamic manifest generator handle.
*/
void lv2_dyn_manifest_close(LV2_Dyn_Manifest_Handle handle);
diff --git a/lv2/lv2plug.in/ns/ext/event/event.h b/lv2/lv2plug.in/ns/ext/event/event.h
index 477a34f..88ef01d 100644
--- a/lv2/lv2plug.in/ns/ext/event/event.h
+++ b/lv2/lv2plug.in/ns/ext/event/event.h
@@ -18,12 +18,12 @@
/**
@file event.h
C API for the LV2 Event extension <http://lv2plug.in/ns/ext/event>.
-
+
This extension is a generic transport mechanism for time stamped events
of any type (e.g. MIDI, OSC, ramps, etc). Each port can transport mixed
events of any type; the type of events and timestamps are defined by a URI
which is mapped to an integer by the host for performance reasons.
-
+
This extension requires the host to support the LV2 URI Map extension.
Any host which supports this extension MUST guarantee that any call to
the LV2 URI Map uri_to_id function with the URI of this extension as the
@@ -60,15 +60,15 @@ static const uint32_t LV2_EVENT_PPQN = 3136573440U;
/**
An LV2 event (header only).
-
+
LV2 events are generic time-stamped containers for any type of event.
The type field defines the format of a given event's contents.
-
+
This struct defines the header of an LV2 event. An LV2 event is a single
chunk of POD (plain old data), usually contained in a flat buffer (see
LV2_EventBuffer below). Unless a required feature says otherwise, hosts may
assume a deep copy of an LV2 event can be created safely using a simple:
-
+
memcpy(ev_copy, ev, sizeof(LV2_Event) + ev->size); (or equivalent)
*/
typedef struct {
@@ -119,16 +119,16 @@ typedef struct {
/**
A buffer of LV2 events (header only).
-
+
Like events (which this contains) an event buffer is a single chunk of POD:
the entire buffer (including contents) can be copied with a single memcpy.
The first contained event begins sizeof(LV2_EventBuffer) bytes after the
start of this struct.
-
+
After this header, the buffer contains an event header (defined by struct
LV2_Event), followed by that event's contents (padded to 64 bits), followed
by another header, etc:
-
+
| | | | | | |
| | | | | | | | | | | | | | | | | | | | | | | | |
|FRAMES |SUBFRMS|TYP|LEN|DATA..DATA..PAD|FRAMES | ...
@@ -145,7 +145,7 @@ typedef struct {
/**
The size of this event header in bytes (including everything).
-
+
This is to allow for extending this header in the future without
breaking binary compatibility. Whenever this header is copied,
it MUST be done using this field (and NOT the sizeof this struct).
@@ -166,7 +166,7 @@ typedef struct {
connect_port is called on the input port, at which time the host MUST
have set the stamp_type field to the value that will be used for all
subsequent run calls.
-
+
OUTPUTS: The plugin may set this to any value that has been returned
from uri_to_id with the URI of this extension for a 'map' argument.
When connected to a buffer with connect_port, output ports MUST set this
@@ -223,7 +223,7 @@ typedef void* LV2_Event_Callback_Data;
/**
Non-POD events feature.
-
+
To support this feature the host must pass an LV2_Feature struct to the
plugin's instantiate method with URI "http://lv2plug.in/ns/ext/event"
and data pointed to an instance of this struct. Note this feature
@@ -233,7 +233,7 @@ typedef struct {
/**
Opaque pointer to host data.
-
+
The plugin MUST pass this to any call to functions in this struct.
Otherwise, it must not be interpreted in any way.
*/
@@ -241,7 +241,7 @@ typedef struct {
/**
Take a reference to a non-POD event.
-
+
If a plugin receives an event with type 0, it means the event is a
pointer to some object in memory and not a flat sequence of bytes
in the buffer. When receiving a non-POD event, the plugin already
@@ -249,16 +249,16 @@ typedef struct {
passed to an output, lv2_event_ref MUST be called on that event.
If the event is only stored OR passed through, this is not necessary
(as the plugin already has 1 implicit reference).
-
+
@param event An event received at an input that will not be copied to
an output or stored in any way.
-
+
@param context The calling context. Like event types, this is a mapped
URI, see lv2_context.h. Simple plugin with just a run() method should
pass 0 here (the ID of the 'standard' LV2 run context). The host
guarantees that this function is realtime safe iff @a context is
realtime safe.
-
+
PLUGINS THAT VIOLATE THESE RULES MAY CAUSE CRASHES AND MEMORY LEAKS.
*/
uint32_t (*lv2_event_ref)(LV2_Event_Callback_Data callback_data,
@@ -266,22 +266,22 @@ typedef struct {
/**
Drop a reference to a non-POD event.
-
+
If a plugin receives an event with type 0, it means the event is a
pointer to some object in memory and not a flat sequence of bytes
in the buffer. If the plugin does not pass the event through to
an output or store it internally somehow, it MUST call this function
on the event (more information on using non-POD events below).
-
+
@param event An event received at an input that will not be copied to an
output or stored in any way.
-
+
@param context The calling context. Like event types, this is a mapped
URI, see lv2_context.h. Simple plugin with just a run() method should
pass 0 here (the ID of the 'standard' LV2 run context). The host
guarantees that this function is realtime safe iff @a context is
realtime safe.
-
+
PLUGINS THAT VIOLATE THESE RULES MAY CAUSE CRASHES AND MEMORY LEAKS.
*/
uint32_t (*lv2_event_unref)(LV2_Event_Callback_Data callback_data,
diff --git a/lv2/lv2plug.in/ns/ext/uri-map/uri-map.h b/lv2/lv2plug.in/ns/ext/uri-map/uri-map.h
index 6767cd1..df22cc7 100644
--- a/lv2/lv2plug.in/ns/ext/uri-map/uri-map.h
+++ b/lv2/lv2plug.in/ns/ext/uri-map/uri-map.h
@@ -17,7 +17,7 @@
/**
@file
C header for the LV2 URI Map extension <http://lv2plug.in/ns/ext/uri-map>.
-
+
This extension defines a simple mechanism for plugins to map URIs to
integers, usually for performance reasons (e.g. processing events typed by
URIs in real time). The expected use case is for plugins to map URIs to
@@ -41,7 +41,7 @@ typedef void* LV2_URI_Map_Callback_Data;
/**
URI Map Feature.
-
+
To support this feature the host must pass an LV2_Feature struct to the
plugin's instantiate method with URI "http://lv2plug.in/ns/ext/uri-map"
and data pointed to an instance of this struct.
@@ -50,7 +50,7 @@ typedef struct {
/**
Opaque pointer to host data.
-
+
The plugin MUST pass this to any call to functions in this struct.
Otherwise, it must not be interpreted in any way.
*/
@@ -58,7 +58,7 @@ typedef struct {
/**
Get the numeric ID of a URI from the host.
-
+
@param callback_data Must be the callback_data member of this struct.
@param map The 'context' of this URI. Certain extensions may define a
URI that must be passed here with certain restrictions on the return
@@ -67,14 +67,14 @@ typedef struct {
unless there is a specific need to do so, e.g. to restrict the range of
the returned value.
@param uri The URI to be mapped to an integer ID.
-
+
This function is referentially transparent; any number of calls with the
same arguments is guaranteed to return the same value over the life of a
plugin instance (though the same URI may return different values with a
different map parameter). However, this function is not necessarily very
fast: plugins SHOULD cache any IDs they might need in performance
critical situations.
-
+
The return value 0 is reserved and indicates that an ID for that URI
could not be created for whatever reason. Extensions MAY define more
precisely what this means in a certain context, but in general plugins