Debian Codegraph @

plugin/plugingizmo/midnam_lv2.h

raw
1 #define LV2_MIDNAM_URI "http://ardour.org/lv2/midnam"
2 #define LV2_MIDNAM_PREFIX LV2_MIDNAM_URI "#"
3 #define LV2_MIDNAM__interface LV2_MIDNAM_PREFIX "interface"
4 #define LV2_MIDNAM__update LV2_MIDNAM_PREFIX "update"
5
6 typedef void* LV2_Midnam_Handle;
7
8 /** a LV2 Feature provided by the Host to the plugin */
9 typedef struct {
10 /** Opaque host data */
11 LV2_Midnam_Handle handle;
12 /** Request from run() that the host should re-read the midnam */
13 void (*update)(LV2_Midnam_Handle handle);
14 } LV2_Midnam;
15
16 typedef struct {
17 /** Query midnam document. The plugin
18 * is expected to return a null-terminated XML
19 * text which is a valid midnam desciption
20 * (or NULL in case of error).
21 *
22 * The midnam <Model> must be unique and
23 * specific for the given plugin-instance.
24 */
25 char* (*midnam)(LV2_Handle instance);
26
27 /** The unique model id used ith the midnam,
28 * (or NULL).
29 */
30 char* (*model)(LV2_Handle instance);
31
32 /** free allocated strings. The host
33 * calls this for every value returned by
34 * \ref midnam and \ref model.
35 */
36 void (*free)(char*);
37 } LV2_Midnam_Interface;